《Flask Web Development》的笔记-第5页
- 章节名：Using Virtual Environments
- 页码：第5页 2014-11-27 00:18:20
To start using the virtual environment, you have to “activate” it. If you are using a bash command line (Linux and Mac OS X users), you can activate the virtual environment with this command:$ source venv/bin/activateWhen a virtual environment is activated, the location of its Python interpreter is added to the PATH, but this change is not permanent; it affects only your current command session. To remind you that you have activated a virtual environment, the activation command modifies the command prompt to include the name of the environment:(venv) $When you are done working with the virtual environment and want to return to the global Python interpreter, type deactivate at the command prompt.
说明 · · · · · ·