文章目录
- 1. 默认选择Previously configured interpreter
- 2. New environment using:Virtualenv(第一种情况)
- 3.New environment using:Virtualenv(第二种情况)
- 4.New environment using:Conda(第一种情况)
- 4. Previously configured interpreter:Virtualenv Environment
- 5.Previously configured interpreter:Conda Environment
- 6.Previously configured interpreter:System Interpreter
- 7.我的发现
1. 默认选择Previously configured interpreter
- 结果:包是conda list的所有包
2. New environment using:Virtualenv(第一种情况)
-
New environment using:Virtualenv
-
Inherit global site-packages:√
- 勾选上的话代表创建的新项目需要copy一份全局包到虚拟环境
-
Make avaliable to all projects:√
- 勾选上表示当在虚拟环境下安装包的时候,copy一份到全局
-
结果:包是conda list的所有包
3.New environment using:Virtualenv(第二种情况)
-
New environment using:Virtualenv
-
Inherit global site-packages:空
-
Make avaliable to all projects:空
-
结果:只有三个包,有venv目录
4.New environment using:Conda(第一种情况)
- New environment using:Conda
- Python version:3.8
- Make avaliable to all projects:空
- 结果:Python为3.8版本,有部分包,查看conda环境,发现增加一个!
- 加载中
- Python版本为3.8了
4. Previously configured interpreter:Virtualenv Environment
- 选择Previously configured interpreter:Virtualenv Environment
- 结果:包是是conda list下所有的包
- Python3.7变成了Python3.7(base)
- 创建成功后,右下角加载很快,几乎没有任何加载
- 但还是只有先前最开始的base环境
- 没有出现venv这样的目录
5.Previously configured interpreter:Conda Environment
- 选择Previously configured interpreter:Conda Environment
- 结果:包是conda list中所有的包
- Python3.7变成了Python3.7(base)(2)
- 创建成功后,右下角加载很快,几乎没有任何加载
- 包是conda list中所有的包
6.Previously configured interpreter:System Interpreter
- 选择Previously configured interpreter:System Interpreter
- 结果:包是conda list中所有的包
- Python3.7变成了Python3.7(2)
7.我的发现
- 只有在选择New environment using:Virtualenv时,环境的前面的标志不是conda的图案标志