虚拟环境安装

  1. 创建虚拟环境

  2. 激活虚拟环境

  3. 使用 conda 安装 pip

  4. 查看路径
    pip show numpy

  5. 查看所有的虚拟环境
    conda info -e

当前激活的环境带 *

6.指定 python 版本创建虚拟环境
conda create -n test-env python=3.8

7.pip

conda deactivate   #推出当前环境`
conda remove -n test-env --all  #删除环境
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pygame   #安装 pygame
pip list      #显示所有安装
posted @ 2024-03-04 22:11  by1314  阅读(3)  评论(0编辑  收藏  举报
浏览器标题切换
浏览器标题切换end