如何Pip安装旧版本的库(tensorflow)? [英] How to pip install old version of library(tensorflow)?

查看:2305
本文介绍了如何Pip安装旧版本的库(tensorflow)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装tensorflow r0.11.我尝试过

I'm trying to install tensorflow r0.11. I tried

pip install tensorflow==r0.11
pip install tensorflow<0.12

但是我得到这个错误

Could not find a version that satisfies the requirement tensorflow==0.11.0 (from versions: 0.12.0rc0, 0.12.0rc1, 0.12.0, 0.12.1)
No matching distribution found for tensorflow==0.11.0

我认为pip不再支持特定版本,如何获取?

I assume pip is no longer support depricated versions, how can I get it?

我也尝试过

pip install git+git://github.com/tensorflow/tensorflow@r0.11

Cloning git://github.com/tensorflow/tensorflow (to r0.11) to /private/var/folders/1p/7km73m0s2cvdfb1js3ct8_mh0000gn/T/pip-JMMIRP-build
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '/private/var/folders/1p/7km73m0s2cvdfb1js3ct8_mh0000gn/T/pip-JMMIRP-build/setup.py'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/1p/7km73m0s2cvdfb1js3ct8_mh0000gn/T/pip-JMMIRP-build/

推荐答案

您可以直接从URL安装定位轮,例如:

You can install the pip wheel from a URL directly, for example:

# Ubuntu/Linux 64-bit, CPU only, Python 2.7
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl
pip install --ignore-installed --upgrade $TF_BINARY_URL

通常,可以在以下位置找到有关TensorFlow较早版本的安装说明: 对于使用轮子安装的二进制文件: 转到 tensorflow pypi发布历史,选择您选择的发布 >说tensorflow 1.8.0,请转到 下载文件 ,然后下载wheel文件,然后安装或复制下载链接,并保存在TF_BINARY_URL中,以进行python --version os [mac,linux或Windows] 安装如上图所示

In general, installation instructions for older versions of TensorFlow can be found at : For binaries for installation using wheels: Go to tensorflow pypi release history, select the release of your choice, say tensorflow 1.8.0 , go to Download files and either download the wheel file and then install or copy the download link and save in TF_BINARY_URL for your python --version and os [mac, linux or windows] install as shown above

这篇关于如何Pip安装旧版本的库(tensorflow)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆