virutalenv is used to isolate Python and Python installation packages.
When using virtualenv, you need to run the command in the command line: env/bin/activate
IDLE is a Python IDE, and the Python interpreter used is the system default.
You can use a convenient editor to edit Python code, such as PyCharm in Windows, etc., and then use virtualenv on the command line to run the code. You can also specify a virtualenv in Pycharm to run: http://blog.csdn.net/hy245120...
You must not have read the book carefully. The book clearly explains how to use it:
Now, there is a subfolder named venv in the flasky folder, which saves a new virtual environment with a private Python interpreter in it. Before using this virtual environment, you need to "activate" it. If you use the bash command line (Linux and Mac OS Is: $ venvScriptsactivate $ source venv/bin/activate 如果使用微软Windows 系统,激活命令是: $ venvScriptsactivate
To be honest, I hate using this virtual environment. It is not a particularly ideal solution. It is recommended not to invest too much time. I have been studying docker recently.
virutalenv is used to isolate Python and Python installation packages.
When using virtualenv, you need to run the command in the command line:
env/bin/activate
IDLE is a Python IDE, and the Python interpreter used is the system default.
You can use a convenient editor to edit Python code, such as PyCharm in Windows, etc., and then use virtualenv on the command line to run the code.
You can also specify a virtualenv in Pycharm to run: http://blog.csdn.net/hy245120...
You must not have read the book carefully. The book clearly explains how to use it:
To be honest, I hate using this virtual environment. It is not a particularly ideal solution. It is recommended not to invest too much time. I have been studying docker recently.
You can also use
$ source venv/bin/activate
进入虚拟环境, 之后就像普通方式使用 python, pip 等.使用结束后可以使用
$ deactivate
to exit the virtual environment.