Advertisement

voxsrc20_tsk_01-how to install pycharm and add to favorites in Ubuntu 20.04?

阅读量:

Install Pycharm

        • Step1: 获取社区版本号为2020年1月2日的PyCharm社区版本
  • Step2: 按照安装Linux.tar.txt文件进行下一步操作以优化你的开发体验
  • Step3: 将PyCharm收藏到我的最爱列表中

首先,请下载安装程序:从JetBrains获取 pycharm-community-2020.1.2.tar.gz

Step1: extract pycharm-community-2020.1.2
复制代码
    $ tar -xf pycharm-community-2020.1.2.tar.gz 
    $ cd pycharm-community-2020.1.2
    $ ls
    bin        help   Install-Linux-tar.txt  lib      plugins
    build.txt  index  jbr                    license  product-info.json
    
    
      
      
      
      
      
    
    AI写代码

Then, open Install-Linux-tar.txt and go to next step.

Step2: follow Install-Linux-tar.txt

guide:

  1. 启动该应用的方法是:进入终端,在安装目录下的bin目录中运行./pycharm.sh脚本。

执行该命令后将创建 essential settings for smooth operation within the ~/.config/JetBrains/PyCharmCE2020.1 directory.

这将为PyCharm CE提供必要的初始配置以支持其功能。

record:

复制代码
    $ cd bin
    $ ./pycharm.sh
    OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
    ...
    
    
      
      
      
      
    
    AI写代码

The installation was done.

Step3: add pycharm to my favorites

Q: How can I set up a PyCharm desktop shortcut and add it to my favorites? A: It’s two steps: first, create the shortcut; second, add it to your favorites.

第一步:创建PyCharm desktop环境。尝试使用方法一后发现无法成功

复制代码
    $ sudo subl /usr/share/applications/Pycharm.desktop
    sudo: subl: command not found
    
    
      
      
    
    AI写代码

动手实践并成功实现了该功能

将这些内容复制到Pycharmdesktop中

复制代码
    [Desktop Entry]
    Version = 1.0
    Type = Application
    Name = Pycharm
    Icon = /home/cui/Downloads/pycharm-community-2020.1.2/bin/pycharm.png
    # change 'cui/Downloads/pycharm-community-2020.1.2' to your own
    Exec = "/home/cui/Downloads/pycharm-community-2020.1.2/bin/pycharm.sh" %f
    # change 'cui/Downloads/pycharm-community-2020.1.2' to your own
    Comment=The Python IDE
    Categories=IDE;
    Terminal = false Startup
    
    
      
      
      
      
      
      
      
      
      
      
      
    
    AI写代码

Step 2: Add your favorite**
Once you open it, the PyCharm icon will appear in the "Show Applications" section.
Next, select the PyCharm icon and perform a right-click action. From the dropdown menu that appears, choose either "New Window" or "Add to Favorites." Selecting "Add to Favorites" will save your preference.

PyCharm基本使用

全部评论 (0)

还没有任何评论哟~