【问题标题】:Could not install packages due to an OSError: [Errno2] No such file or directory由于 OSError 无法安装软件包:[Errno 2] 没有这样的文件或目录
【发布时间】:2021-03-17 11:50:31
【问题描述】:

当我尝试安装 Tensorflow 时,会出现此消息。我用的是最新版的python和pip。

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\julia\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\tensorflow\\include\\external\\com_github_grpc_grpc\\src\\core\\ext\\filters\\client_channel\\lb_policy\\grpclb\\client_load_reporting_filter.h'

它出现在所有旧版本的 Tensorflow 上。在最新版本中显示如下:

ERROR: Could not find a version that satisfies the requirement tensorflow==1.2.0
ERROR: No matching distribution found for tensorflow==1.2.0

【问题讨论】:

    标签: python-3.x tensorflow installation


    【解决方案1】:

    【讨论】:

    • 问题已解决。
    【解决方案2】:

    就我而言,仅在环境目录中手动删除包的“剩余部分”即可解决此问题。 路径:...“\venv\Lib\site-packages\ {包名}” 请确保在删除任何文件之前进行备份。

    【讨论】:

      猜你喜欢
      • 2021-05-04
      • 2023-02-15
      • 2021-05-25
      • 2019-05-22
      • 2022-08-16
      • 2019-07-13
      • 1970-01-01
      • 2022-12-19
      • 1970-01-01
      相关资源
      最近更新 更多