cs-guide/docs/cs-tips/python-tip/python-install.md
2023-05-25 12:34:06 +08:00

26 lines
778 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# python配置
## 使用conda安装
conda环境变量: path里面加上这个 `D:\Miniconda3\Scripts`
python环境变量:
注意要先建立一个环境 (用pycharm或者conda create condapkg)
然后写一个环境变量 py_home 值为 D:\Miniconda3\envs\condapkg
再去path环境变量加一条`%py_home%``%py_home%\Scripts`
如果你已经安装了conda那么直接通过conda-forge的channel只需要下面这一行命令即可创建新的Python
3.10正式版本虚拟环境:
```java
conda create -n py310 python=3.10 -c conda-forge -y
```
完成安装之后激活环境进入Python的shell可以看到版本为3.10.5
## windows安装
直接下载python的exe安装包安装,不要用zip包,里面缺少`setuptools和pip`,配置麻烦