python - 如何 pip 安装旧版本的库(tensorflow)?

标签 python macos tensorflow pip

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

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 不再支持贬值版本,我怎样才能得到它?

我也试过

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/

最佳答案

这适用于 Mac OS 10.13.1。

pip install --user install tensorflow==1.3.0. 

关于python - 如何 pip 安装旧版本的库(tensorflow)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41937915/

相关文章:

python - 使用MySQLdb更新表时出错

python - 将 CSV 导入 Mac 上的 Jupyter Notebook (python)

python - 如何将 report_tensor_allocations_upon_oom 添加到 Keras 中的 RunOptions

macos - minikube主机路径安装权限

python - YOLO : Either overfits or underfits, 增加batch还是增加样本图像池?

python - Tensorflow - 正确(本地?)处理多个时期的数据批处理重叠(小批量?)

python - 您如何使用 os.chdir 转到减去最后一步的路径?

python - 子集总和为 `itertools.combinations`

java - 如何通过PythonInterpreter访问Python类

swift - C 语言的 FTDI D2XX API 在命令行控制台上工作,但在 macOS 上由 Xcode 和 Swift 编程构建的应用程序中始终返回零