【Python】环境准备
Python环境准备
安装Python3.X & PyCharm(IDE)
百度云下载,内涵Python3.X安装包,PyCharm专业版
链接:https://pan.baidu.com/s/1nslIRMLP88usxXF7OuxE8w
提取码:lplb
下载后安装
PyCharm环境准备
1、新建工程:File -> New Project…,参考下图:
2、设置PyCharm中python环境:
可设置项目虚拟环境或者全局环境
-
虚拟环境:File -> Settings -> Project Interpreter,按照下图配置 -
-
全局环境:File -> Settings -> Project Interpreter,按照下图配置 - -
3、pip境内镜像资源配置
镜像资源连接如下: -
https://pypi.python.org/simple
-
https://pypi.tuna.tsinghua.edu.cn/simple/
-
https://mirrors.aliyun.com/pypi/simple/
-
https://pypi.doubanio.com/simple/
-
虚拟环境:File -> Settings
-
全局环境:pip.ini
4、升级工程默认pip版本
虚拟环境:PyCharm下方terminal,输入python -m pip install --upgrade pip全局环境:调用cmd,输入python -m pip install --upgrade pip