我正在尝试使用pip安装TensorFlow:
$ pip install tensorflow --user
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
我做错了什么?到目前为止,我使用Python和pip没有任何问题。
我正在尝试使用pip安装TensorFlow:
$ pip install tensorflow --user
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
我做错了什么?到目前为止,我使用Python和pip没有任何问题。
当前回答
我发现TensorFlow 1.12.0只适用于Python 3.5.2版本。我用的是Python 3.7,但它不起作用。所以,我不得不降级Python,然后我可以安装TensorFlow让它工作。
将python版本从3.7降级到3.6
conda install python=3.6.8
其他回答
我也有这个问题。当查看不同的.whl文件时。我注意到在python 3.7中没有32位版本的tensorflow。最后只能从这里安装64位Python 3.7。
我在conda上安装了tensorflow,但似乎在windows上不起作用,但最终这个命令在cmd上可以正常工作。
python.exe -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl
我发现TensorFlow 1.12.0只适用于Python 3.5.2版本。我用的是Python 3.7,但它不起作用。所以,我不得不降级Python,然后我可以安装TensorFlow让它工作。
将python版本从3.7降级到3.6
conda install python=3.6.8
也有类似的问题
结果是默认的GPU版本,我已经在一个没有GPU的服务器上安装了它。
pip install --upgrade tensorflow-cpu
成功了
试试这个:
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.1-py3-none-any.whl
pip3 install --upgrade $TF_BINARY_URL
来源:https://www.tensorflow.org/get_started/os_setup(页面已不存在)
更新2/23/17 文档移至:https://www.tensorflow.org/install