python虚拟环境 #13

Closed
opened 2025-03-18 17:06:23 +08:00 by Sirius · 0 comments
Owner

python虚拟环境

新版本要求先创建虚拟环境

python3 -m venv myenv

激活虚拟环境

source myenv/bin/activate

然后就可以在里面正常使用pip了,依赖会被安装在当前虚拟环境下

# python虚拟环境 新版本要求先创建虚拟环境 ```shell python3 -m venv myenv ``` 激活虚拟环境 ```shell source myenv/bin/activate ``` 然后就可以在里面正常使用`pip`了,依赖会被安装在当前虚拟环境下
Sirius added the ubuntu label 2025-03-18 17:06:23 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Sirius/note#13