Pycharm Creating a Virtualenv method

Source: Internet
Author: User
Tags virtual environment virtualenv
Pycharm can use the features in virtualenv to create a virtual environment. Pycharm tightly integrates the virtualenv, so you only need to configure it in setting to create a virtual environment. and Pycharm Bundle The virtualenv, we don't need to install it separately. The general creation process is as follows:

1. Open Project Interpreters page: File---setting---project-->project interpreters;

2, select the project, click on the Right Configuration button, select Create Virtualenv. This will pop up the Create Virtual Environment dialog box;

3. Configure the new environment:

Name in the new virtual environment, or use the default name, to facilitate the installation of third-party packages and other projects to use;

Fill in the file directory of the new environment in the location;

Select the Python interpreter in the Base interpreter drop-down box;

Tick inherit global site-packages to use a third-party library in base interpreter, which is completely isolated from the outside world;

Tick make available to all projects this virtual environment is available for use by other projects.

4, click OK, all configuration is complete. This is not much simpler than configuring virtualenv alone.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.