由于 OSError 无法安装软件包:[Errno2] 没有这样的文件或目录

pro*_*394 4 installation python-3.x tensorflow

当我尝试安装 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'
Run Code Online (Sandbox Code Playgroud)

它出现在所有旧版本的 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
Run Code Online (Sandbox Code Playgroud)