链接:

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环境

 

最新文章

  1. C#读取文件为byte[]
  2. .Net 转战 Android 4.4 日常笔记(6)--Android Studio DDMS用法
  3. ABP中使用OAuth2(Resource Owner Password Credentials Grant模式)
  4. python 打印 网格
  5. 案例研究:Web应用间歇性SqlException
  6. 怎么使用Docker搭建PHP开发环境呢?
  7. Atlassian如何实施DevOps
  8. (转载)MVC + JQUERY + AJAX的几种方式
  9. Poetize4 创世纪
  10. JavaScript 函数绑定 Function.prototype.bind
  11. Mongodb集群搭建
  12. PHP中json序列化后中文的编码显示问题
  13. Spring读书笔记——bean解析
  14. 网易内推(Android) 拿offer
  15. Java开源生鲜电商平台-用户表的设计(源码可下载)
  16. 机器翻译评价指标 — BLEU算法
  17. Python-dict-12
  18. Spring Boot(十二):spring boot如何测试打包部署
  19. git log 高级用法
  20. Learning to act by predicting the future

热门文章

  1. 十四、MVC的WEB框架(Structs2)
  2. WannaCry(永恒之蓝)病毒处理方法
  3. asp.net mvc中动作方法的重定向
  4. shell脚本学习之参数传递
  5. HTML5 ③
  6. linux:ssh远程调用tomcat脚本时候出错
  7. day18 类与类之间的关系
  8. [Leetcode 100]判断二叉树相同 Same Tree
  9. centos7创建docker tomcat镜像
  10. 界面控件DevExpress发布v18.2.5|附下载