目录
1 Create a virtualenv environment
2 Create a virtual environment using the project requirements
Configure projects in PyCharm | Configure a Python interpreter | Configure a virtual environment |
在PyCharm中配置项目 | 配置Python解释器 | 配置虚拟环境 |
PyCharm makes it possible to use the virtualenv tool to create a project-specific isolated virtual environment.
The main purpose of virtual environments is to manage settings and dependencies of a particular project regardless of other Python projects.
virtualenv tool comes bundled with PyCharm, so the user doesn't need to install it.
PyCharm使使用virtualenv工具创建特定于项目的隔离虚拟环境成为可能。
虚拟环境的主要目的是管理特定项目的设置和依赖关系,而不管其他Python项目。
virtualenv工具与PyCharm捆绑在一起,因此用户不需要安装它。
For Python 3.3+ the built-in venv module is used, instead of the third-party virtualenv utility.
对于Python 3.3+,使用内置的venv模块,而不是第三方的virtualenv实用程序。
1 Create a virtualenv environment
1 创建虚拟环境
-
Do one of the following:
执行以下操作之一:-
Click the
-