我在新的虚拟环境上安装tensorflow。当我尝试点安装tensorflow时,我收到以下消息
Collecting tensorflow-gpu
Could not find a version that satisfies the requirement tensorflow-gpu (from
versions: )
No matching distribution found for tensorflow-gpu
我正在使用macOS yosemitie和python 3.6
我尝试了以下方法:
使用python 3.5安装
转到pypi,下载方向盘并在其上使用pip
此外,还要尝试对
使用--use wheel
选项
git克隆tensorflow repo并使用tensorflow/tools/pip_package/setup.py
安装
到目前为止,没有任何效果。关于为什么以及我能做什么的任何见解?
最佳答案
注意:从1.2版开始,TensorFlow不再在macOS上提供GPU支持。
在不使用-gpu
的情况下运行以下命令:
pip install --upgrade tensorflow # for Python 2.7
pip3 install --upgrade tensorflow # for Python 3.n
官方说明可以在这里找到:Installing TensorFlow on macOS
关于python - Pip在macOS上找不到python 3.6的Tensorflow,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/47118100/