安装TensorFlow
配置
conda4.4,虚拟环境为python3.6和pip20.0.2
问题
可能是家庭网络路由问题,下载很慢,conda换源不可行,踩了两天的坑
解决
- Tensorflow 1.X 安装
pip install --index-url https://mirrors.aliyun.com/pypi/simple/ tensorflow
或pip install --index-url https://pypi.douban.com/simple/ tensorflow
- Tensorflow 2.X 安装
pip install -i https://pypi.doubanio.com/simple/ tensorflow
安装指定版本
以1.15.0为例
pip install --index-url https://mirrors.aliyun.com/pypi/simple/ tensorflow==