我无法安装tensorflow我命令pip3 install tensorflow --user,结果是
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\\Users\\kosh9\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python38\\site-packages\\tensorboard_plugin_wit\\_vendor\\tensorflow_serving\\sources\\storage_path\\__pycache__\\file_system_storage_path_source_pb2.cpython-38.pyc'
即,由于环境错误,我无法安装软件包。
我该如何解决此错误?
尝试直接从PyPi安装。
您在Windows系统上,请尝试以下方法之一:
pip install tensorflow-gpu
或者在Intel处理器上pip install intel-tensorflow
如果不起作用,请尝试获取.whl
文件。对于Windows上的Python 3.8:pip install https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-2.2.0-cp38-cp38-win_amd64.whl
注意:通常不需要在Windows上使用pip3
或python3