Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/333.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何安装旧版本的Tensorflow?_Python_Tensorflow_Pip_Anaconda - Fatal编程技术网

Python 如何安装旧版本的Tensorflow?

Python 如何安装旧版本的Tensorflow?,python,tensorflow,pip,anaconda,Python,Tensorflow,Pip,Anaconda,我遵循教程。他使用Tensorflow 1.10.0。我也应该用那个版本。因为本教程与Tensorflow的较新版本不兼容 所以,当我打开Anaconda提示符并写入 pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.10.0-py3-none-any.whl 我看到很长的错误消息。如何安装Tensorflow 1.10.0 我还尝试: conda create --nam

我遵循教程。他使用Tensorflow 1.10.0。我也应该用那个版本。因为本教程与Tensorflow的较新版本不兼容

所以,当我打开Anaconda提示符并写入

pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.10.0-py3-none-any.whl
我看到很长的错误消息。如何安装Tensorflow 1.10.0

我还尝试:

conda create --name="tfold" python=3.7
conda activate tfold
pip install tensorflow==1.10.0
我看到这个错误消息:

ERROR: Could not find a version that satisfies the requirement tensorflow==1.10.0 (from versions: none)
ERROR: No matching distribution found for tensorflow==1.10.0

编辑:与Python 3.7兼容的最旧版本是1.13。我安装了Python3.6。然后,我使用conda create-n test_env tensorflow=1.10.0安装了它,我认为问题在于您使用的是python3.7

尝试使用pip而不是pip3


设置python=2.7并使用pip-install-tensorflow==1.10,对我来说效果很好

如果您使用的是Conda,为什么要使用pip安装软件包?我是个新手。我不知道它们有冲突。请尝试conda create-n test_env tensorflow=1.10.0。tensorflow==1.10.0不是为Python 3.7编译的,与Python 3.7兼容的最旧版本是1.13。安装1.13,或者使用Python3.6或更早版本。我在使用pip而不是pip3时看到错误。教程说我应该使用比3.6更新的版本最好的解决方案是完全更改Python版本?