广告
返回顶部
首页 > 资讯 > 后端开发 > Python >Python环境(基于Pycharm和官
  • 757
分享到

Python环境(基于Pycharm和官

环境PythonPycharm 2023-01-31 02:01:09 757人浏览 安东尼

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文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作