Pycharm: Virtual Environment
Version:
Pycharm 2024.1.4
Python 3.11.9
The Python project relies heavily on libraries. To manage various projects and versions, it is recommend to use a virtual environrment. Here are the instructions for creating a virtual environment in Pycharm.
1. Project Interpreters
File --> Settings --> Project: pythonProject --> Python interpreters --> Add
2. Add Local Python Environment
Virtualenv Environment --> New Environment --> Set Location, Base interpreter
3. Apply virtual environment.
In the terminal command window, commands beginning with (venv) indicate that the program is now running in a virtual environment.