1. 官网安装地址: https://www.python.org/downloads/
自定义安装:
python 添加环境变量 for all users
AI 学习 建议 安装版本:
python:v3.8.10
虚拟环境1:
numpy:1.22
pandas:1.4
虚拟环境2:
numpy:1.13.1
pandas:1.0
建议安装 Jupyter
2. 确认安装的python版本
PS C:\> py --version Python 3.11.0 PS C:\> pip --version pip 22.3.1 from C:\Python311\Lib\site-packages\pip (python 3.11) # powershell admin权限,执行安装cmd PS C:\> py -m pip install --upgrade pip Requirement already satisfied: pip in c:\python311\lib\site-packages (22.3) Collecting pip Using cached pip-22.3.1-py3-none-any.whl (2.1 MB) Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 22.3 Uninstalling pip-22.3: Successfully uninstalled pip-22.3 Successfully installed pip-22.3.1
安装版本过多 =》执行特定的python脚本
PS C:\> py --list -V:3.11 * Python 3.11 (64-bit) -V:3.10 -V:3.9 Python 3.9 (64-bit) -V:3.8 Python 3.8 (64-bit) -V:3.7 Python 3.7 (64-bit) PS C:\> py -3.8 --version Python 3.8.10
重启电脑 =》使得 环境变量生效
3. 针对特定的project 创建 特定的project
why?
特定的project:安装,下载特定的 modules =》避免 版本冲突
how?
3.1 创建目录:python环境,特定的projects
3.2 创建python虚拟环境:包含所有的依赖
标签:Python,22.3,python,--,pip,安装 From: https://www.cnblogs.com/panpanwelcome/p/17062766.html