0% found this document useful (0 votes)
3 views2 pages

Virtual Environments

The document explains how to create and manage virtual environments in PyCharm starting from version 2023.2. Users can automatically create a virtual environment when setting up a new project, which will be stored in a designated folder. The document also details how to rename the virtual environment and notes that it is automatically activated when the project is opened in the IDE.

Uploaded by

takar70775
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Virtual Environments

The document explains how to create and manage virtual environments in PyCharm starting from version 2023.2. Users can automatically create a virtual environment when setting up a new project, which will be stored in a designated folder. The document also details how to rename the virtual environment and notes that it is automatically activated when the project is opened in the IDE.

Uploaded by

takar70775
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

VIRTUAL ENVIRONMENTS IN PYCHARM

Important: To understand and apply this guide, it's crucial that you first watch the lesson "Virtual
Environments" to grasp this concept before identifying how to create it in your project.

Since the 2023.2 version of PyCharm, the management of virtual environments for Python projects has
been greatly simplified.
When you create a new project in PyCharm, one of the initial options available is the option to
automatically create and configure a virtual environment.
Upon selecting this option, PyCharm will create a folder called 'venv' (or whatever name you choose) in
which the virtual environment for that project will be set up.

Project location

Activated Virtual Environment


The virtual environment will
automatically take the
same project location.

You can change its name if


you prefer.
HOW TO CHANGE THE VIRTUAL ENVIRONMENT’S NAME
In the same window, you will be able to see (within the folder where you chose to create the project) the
virtual environment you just created. There you can modify the name.

Change the name of the


virtual environment here

Create project

Once the project it is created, you’ll be able to see it within the chosen folder. The virtual environment
Will be there too:

Additionally, PyCharm automatically activates this virtual environment when you open the project in the
IDE. This means that when using the terminal within PyCharm, you'll see the name of the virtual
environment (such as 'venv') in the project directory path, indicating that the virtual environment is
activated and all libraries and dependencies installed in that environment will be used for that particular
project.

You might also like