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