我正在尝试为我要使用的软件包安装Tensorflow 1.14。我试过了:
pip3 uninstall tensorflow
然后我尝试使用以下命令安装Tensorflow 1.14:
pip3 install tensorflow==1.14
,我收到以下错误
ERROR: Could not find a version that satisfies the requirement tensorflow==1.14 (from versions: 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2) ERROR: No matching distribution found for tensorflow==1.14
我也尝试制作一个新的虚拟环境,并尝试了以下命令,但是没有用。有什么方法可以安装Tensorflow 1吗?
答案 0 :(得分:2)
我在discourse上找到的内容:
You just need to make sure you’re using Python 3.5, 3.6 or 3.7. TensorFlow 1.15 does not support Python 3.8
答案 1 :(得分:2)
我可以使用以下命令安装 1.x tensorflow:
pip3 install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.14.0-py3-none-any.whl
答案 2 :(得分:1)
尝试使用来安装TensorFlow 1.15的最终版本,
pip install tensorflow==1.15
确保您使用的是python3虚拟环境,并且Python版本为3.6或更高版本。
或者,您可以使用Conda环境并使用
conda install -c conda-forge tensorflow=1.15