Set the project interpreter and environment variables in Pycharm
- 2021-01-18 06:32:00
- OfStack
1. Download Pycharm version community from pycharm-community-2017.3.1.tar.gz.
2. # Unzip tar.gz
tar xfz pycharm-*.tar.gz
cd bin
./Pycharm.sh
Then, 1 way next is installed.
3. When the Pycharm image interface appears, the installation is successful.
4. New projects
1)File- > New project- >
Set the project location path:
Set the interpreter: ES38en16.04 install the interpreter ES39en2, ES40en3, ES41en2.7, ES42en3.5 by default, I choose the default ES43en2.
5. Open an existing project/directory
File - "open -"
Project/directory path
Set the interpreter: ES54en16.04 default installation ES55en2, ES56en3, ES57en2.7, ES58en3.5 interpreter, I choose the default ES59en2.
6. Some projects need to manually set PYTHONPATH and other environment variables on Pycharm, which will not be automatically loaded on ~/.bashrc.
Process:
The upper right corner of the interface is "generate.py", click the drop-down list, select "edit configureations", under configuration Environment Variables, "+" to add environment variables, similar to adding environment variables under windwos.