Conda命令及虚拟环境配置 python
创建虚拟环境
conda create --name env_name python=3.13.5
激活虚拟环境
conda activate env_name
安装jupyter
pip install jupyter -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
pip设置国内源
pyth...
Python之虚拟环境 python
一、创建环境
python -m venv ENV_DIR
二、激活环境
windows下:
.\ENV_DIR\Scripts\activate
mac下:
source .\ENV_DIR\bin\activate
三、安装环境
pip install django
pip install djangorestframework
pip install ...