SoFunction
Updated on 2024-11-16

How to set up the project interpreter and environment variables in Pycharm

1.Official Website DownloadPycharm communityversion aspycharm-community-2017.3.。

2. # Unpacking

tar xfz pycharm-*.

cd bin

./

Then, go all the way to NEXT to install it.

3. When the Pycharm image interface appears, the installation is successful.

4. New projects

1)File->New project->

Set the path where the project is located:

Setup interpreter: ubuntu16.04 installs python2, python3, python2.7, python3.5 interpreter by default, I choose the default python2.7 here.

5. Open an existing project/directory

File-》open-》

Project/Directory Path

Setup interpreter: ubuntu16.04 installs python2, python3, python2.7, python3.5 interpreter by default, I choose the default python2.7 here.

6. Some projects need to manually set other environment variables such as PYTHONPATH on Pycharm, which will not be automatically loaded on ~/.bashrc.

Process:

Upper right corner of the interface such as "", click on the drop-down list, select "edit configureations", in the configuration under the Environment Variables, "+" to add environment variables, similar to windwos add environment variables. "+" to add environment variables, similar to adding environment variables under Windwos.

The above method of setting the project interpreter and environment variables in Pycharm is all that I have shared with you.