Python 官方文档:入门教程 => 点击学习
1.下载安装包python官网下载3.7.2PyCharm 社区版下载安装 2.直接使用Pycharm自带virtualEnvFile - Settings - Project - Project Interpreter - (右侧的齿轮)
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点方法
--结束END--
本文标题: Python环境(基于Pycharm和官
本文链接: https://www.lsjlt.com/news/185904.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0