发布时间:2019-08-24 09:26:47编辑:auto阅读(1709)
1.下载安装包
python官网下载3.7.2
Pycharm 社区版下载安装
2.直接使用Pycharm自带virtualEnv
File - Settings - Project - Project Interpreter - (右侧的齿轮)Add - Virtualenv enviroment - New Virtualenv
说说不用Anoconda原因。
主要是Anoconda到python环境导入到Pycharm时再新增包时,提示SSL连接无法建立。
(
Collecting opencv-python==3.4.2.17
Could not fetch URL https://pypi.org/simple/opencv-python/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/opencv-python/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
)
(原因没有SSL模块支持,Ubuntu下apt-get install openssl解决,但python官网的安装包默认就有ssl)
所以,Pycharm导入python官网环境后,再新增包时,轻松pip install了。
所以如果在Pycharm下管理python环境,就可以用上述的第2点方法
上一篇: 小身材大视野Jabra Pana Cas
下一篇: Amr音频转换Mp3格式
48867
47938
38712
35860
30285
27039
26072
20906
20705
19068
503°
599°
609°
611°
588°
573°
641°
714°
832°
932°