3

【笔记】创建Python虚拟环境

 1 year ago
source link: https://loli.fj.cn/2022/12/24/%E5%88%9B%E5%BB%BAPython%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

【笔记】创建Python虚拟环境

2022-12-24

创建Python虚拟环境,用于隔离不同开发环境

  • 如果Python版本在3.7及以上,可以直接使用内置功能创建虚拟环境

<name>:环境名称

python3 -m venv <name>
  • 创建环境后,会在当前目录下生成一个用于存放虚拟环境信息的目录

激活虚拟环境

source <name>/bin/activate

哔哩哔哩——图灵学院教程


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK