Anaconda canda 安装 Python3 配置

链接:

1、安装Python 3.5以及tensorflow

以前用virtualenv觉得挺好用了,但是用多python版本下安装tensorflow,出现问题:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting flask
Could not fetch URL https://pypi.python.org/simple/flask/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement flask (from versions: )
No matching distribution found for flask

查看很多资料,参考参考2,按照一些方式仍然不行,选择anaconda安装,很方便。

在次环境中安装tensorflow:
conda create --name python35 python=3.5(用3.6与pip安装的tensorflow不兼容)
source activate python35
pip install --upgrade tensorflow

2、回退Python 2.7

如果要退出Python 3.5环境,输入

source deactivate python35

可以看到系统退回Python 2.7环境

 

转载于:https://www.cnblogs.com/pengwang52/p/7825801.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值