资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

Python环境的搭建顺序

这篇文章主要讲解了“Python环境的搭建顺序”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Python环境的搭建顺序”吧!

徐州网站建设公司创新互联建站,徐州网站设计制作,有大型网站制作公司丰富经验。已为徐州上千提供企业网站建设服务。企业网站搭建\成都外贸网站建设要多少钱,请找那个售后服务好的徐州做网站的公司定做!

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点方法

感谢各位的阅读,以上就是“Python环境的搭建顺序”的内容了,经过本文的学习后,相信大家对Python环境的搭建顺序这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是创新互联,小编将为大家推送更多相关知识点的文章,欢迎关注!


当前名称:Python环境的搭建顺序
标题来源:http://cdkjz.cn/article/gpdihs.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

业务热线:400-028-6601 / 大客户专线   成都:13518219792   座机:028-86922220