6: Activating A Virtualenv( Command line Python scripting )

来源:互联网 发布:瑞士 知乎 编辑:程序博客网 时间:2024/06/06 06:35

Once a virtualenv is created, you can activate it using source python3/bin/activate (this assumes that the virtualenv is called python3, and the folder for the virtualenv is in our current directory).

When a virtualenv is activated, the Python version and packages installed in the virtualenv will become the default Python version and packages when you type python.

Instructions

  • Activate the python3 virtualenv
/home/dq$ source  python3/bin/activate                                          
(python3) /home/dq$  

0 0
原创粉丝点击