Python安装tensorflow

Python安装TesorFlow

目录

Python安装TesorFlow

Python2安装

Python3安装Tensorflow

直接安装或者使用国内镜像安装

指定GoogleAPI源安装(macOS系统)


 

Python2安装

直接安装:

pip install tensorflow

使用清华大学镜像源:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow

运行结果:

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting tensorflow
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a7/a9/d44e012a2491cf4845b5cac79c3c3af5ab95d657c8953e9d6e076bb05f4d/tensorflow-2.1.0-cp27-cp27m-macosx_10_11_x86_64.whl (120.8MB)
     |████████████████████████████████| 120.8MB 83kB/s 
Collecting numpy<2.0,>=1.16.0 (from tensorflow)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/09/96/84cf406fe7d589f3dba9fc0f737e65985a3526c6d8c783f02d4b5a10825d/numpy-1.16.6-cp27-cp27m-macosx_10_9_x86_64.whl (13.9MB)
     |████████████████████████████████| 13.9MB 3.5MB/s 
Collecting gast==0.2.2 (from tensorflow)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/4e/35/11749bf99b2d4e3cceb4d55ca22590b0d7c2c62b9de38ac4a4a7f4687421/gast-0.2.2.tar.gz
Collecting grpcio>=1.8.6 (from tensorflow)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/3b/c5/9dbdef7556033f01a1fbb4f578bb4c3e0704235d05cf41a72f4a06d0a51f/grpcio-1.34.0-cp27-cp27m-macosx_10_10_x86_64.whl (3.6MB)
     |████████████████████████████████| 3.6MB 797kB/s 
Collecting scipy==1.2.2; python_version < "3" (from tensorflow)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a3/cf/36b77de4ccb1b841acd4c3c03abe38843c63c3a657cedee9e8fb19a02dc8/scipy-1.2.2-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (27.4MB)
     |████████████████████████████████| 27.4MB 1.8MB/s 
Collecting protobuf>=3.8.0 (from tensorflow)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d2/6b/dee8e8bc6ba3b968b8440a0aca0c111203593986be448f54cea560ce3f0d/protobuf-3.14.0-cp27-cp27m-macosx_10_9_x86_64.whl (1.0MB)
     |████████████████████████████████| 1.0MB 3.1MB/s 
Collecting keras-preprocessing>=1.1.0 (from tensorflow)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/79/4c/7c3275a01e12ef9368a892926ab932b33bb13d55794881e3573482b378a7/Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42kB)
     |████████████████████████████████| 51kB 9.5MB/s 
Collecting absl-py>=0.7.0 (from tensorflow)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/af/88/d97853ec7d4c487a7e3efe379b926b3c4d33fedc5d11d6a2fb6c2ab55646/absl-py-0.11.0.tar.gz (110kB)
     |████████████████████████████████| 112kB 3.4MB/s 
Collecting wrapt>=1.11.1 (from tensorflow)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/82/f7/e43cefbe88c5fd371f4cf0cf5eb3feccd07515af9fd6cf7dbf1d1793a797/wrapt-1.12.1.tar.gz
Collecting backports.weakref>=1.0rc1; python_version < "3.4" (from tensorflow)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/88/ec/f598b633c3d5ffe267aaada57d961c94fdfa183c5c3ebda2b6d151943db6/backports.weakref-1.0.post1-py2.py3-none-any.whl
Collecting functools32>=3.2.3; python_version < "3" (from tensorflow)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c5/60/6ac26ad05857c601308d8fb9e87fa36d0ebf889423f47c3502ef034365db/functools32-3.2.3-2.tar.gz
Collecting tensorflow-estimator<2.2.0,>=2.1.0rc0 (from tensorflow)
  D
  • 1
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值