Manfei Bai
3 min readFeb 3, 2021

How to Download and Install Pycharm on Linux(Ubuntu 18) with GUI

如何在Linux(Ubuntu 18) 下载并安装具有图形界面的Pycharm

  1. Enter the Linux environment command line interface

进入Linux环境命令行界面

2. Download the installation version of PyCharm using wget

下载PyCharm的社区安装版(社区安装版可以满足基本科研需求)

请输入如下命令:

wget https://download.jetbrains.8686c.com/python/pycharm-community-2020.3.3.tar.gz

3. Decompress the installation file of PyCharm

解压PyCharm的安装包,这里直接解压到当前文件夹下,也可以通过使用 -C 参数指定解压位置

tar -zxvf pycharm-community-2020.3.3.tar.go

ls

4. Open the GUI of PyCharm using its command

使用PyCharm自带的命令文件打开PyCharm的GUI图形界面

cd pycharm-community-2020.3.3/bin

./pycharm.sh

# please choose Without if it shows the choose of setting, choose without can let us create one new environment. If it’s our first time to use pycharm in this environment, the environment may not have existing setting to use. After choose, please click the OK button.

#如果出现是否加载已有setting的提示选项,请选择Without不加载,我们将在后续内容中设置setting;如果我们在当前环境是第一次使用PyCharm,可能当前环境没有已存在的setting,可以选择Without;j接着请按下OK按钮,进入PyCharm用户界面

5. Open existing project

打开已有的Project文件,点击Open按钮,在路径中找到目标文件夹,再点击OK按钮

6. Add and link one Python interpreter to this IDE

在这个IDE中使用已有python环境(例如Anaconda环境)新建一个Python Interpreter

  • File -> Settings
  • 点击用户界面左上角的File按钮,并点击接下来出现的Setting按钮
  • Interpreter -> Python Interpreter -> click the screw button
  • 在出现的界面的搜索框里输入Interpreter -> 然后点击接下来出现的Python Interpreter按钮,右侧界面会出现Python Interpreter的界面 -> 点击螺钮按钮
  • Add…
  • 点击Add…按
  • Choose your existing python environment like conda environment and click OK
  • 选择已有的python环境,例如condo环境,并且点击OK按钮

( Position will be the python file’s position )

( 具体的位置在anaconda的envs文件夹中 )

  • Click OK
  • 点击OK按钮

8. Edit the Configuration and use the interpreter we just created for aim script

修改Configuration,并且使用的就是我们刚刚为目标脚步创建的interpreter

  • Click Add Configuration… button
  • 点击Add Configuration… 按钮
  • + -> Python
  • 击+按钮,然后选择Python,右侧会出现如下所示的configuration设置界面
  • Input Name:
  • 在右侧的界面中输入这个configuration的名字,自由设置
  • Click the rectangular box behind Script path:, and choose script path to the aim script path -> OK
  • 点击Script path: 后的矩形框,在出现的小界面中选择我们的目标脚本的路径,在本例中我们选择changeBackground.py作为目标脚本 -> 然后点击OK
  • Click the rectangular box behind Interpreter options:, and choose python interpreter to the python interpreter we just created
  • 点击Interpreter options: 后的矩形框,选择我们刚刚创建的python interpreter
  • Choose the working directory to the current folder
  • 如果working directory中没有内容,那么请点击working directory: 后的矩形框,选择路径到当前打开的project的文件夹
  • Click OK and then we created the interpreter successfully
  • 如下所示就是设置interpreter成功,请点击OK按钮并保存本次设置

9. Run the program

运行程序,请点击用户界面右上角的▶️按钮

# If any questions about this blog, please email directly to me ~

如果关于本blog有任何问题,可以直接发邮件📩给我~

Email address:

ludviqbai@outlook.com