【发布时间】:2021-03-07 03:16:29
【问题描述】:
我正在尝试在我的 Windows 电脑上安装 TensorFlow。我一直无法找到解决我的问题的解决方案。
我目前正在运行 python 3.8 64 位 (pip 19.0.3)。尝试使用pip install tensorflow==2.4.0 安装时,出现错误
Could not find a version that satisfies the requirement tensorflow==2.4.0 (from versions: ) No matching distribution found for tensorflow==2.4.0
我已经尝试过仅对 GPU 和 CPU 使用直接包位置的方法:
pip install https://storage.
googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-2.4.0-cp38-cp38-win_amd64.whl
现在得到错误
tensorflow_gpu-2.4.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.
我的系统是带有英特尔 i5 和 geforce 显卡的 x64。我还安装了 Visual Studios C++。
【问题讨论】:
-
你能在终端输入
where python,看看你的机器上安装了什么样的python吗?默认版本可能不是 3.8,这可能会导致错误。 -
请运行
python --version和python -c "import struct; print(struct.calcsize('P') * 8)"来检查 Python 版本是什么,是否真的是 64 位。 -
另外,请运行
nvidia-smi,以便我们查看您的显卡的详细信息。
标签: python tensorflow pip