ubuntu下安装pycharm教程_可以在开始菜单中创建快捷方式吗

2022-09-27 17:47:01 浏览数 (1)

大家好,又见面了,我是你们的朋友全栈君。

微信公众号: 吴甜甜的博客 我的个人网站: wutiantian.github.io


在Ubuntu 18中安装Pycharm及创建Pycharm快捷方式

一、在Ubuntu18.04中安装Pycharm

1.到PyCharm网站下载pycharm professional 2018.2.4版本:

https://www.jetbrains.com/pycharm/

点击DOWNLOAD NOW按钮,进入系统版本下载页面

图片1

图片2

点击专业版下载

2.将下载的这个安装包解压安装

tar -xzf pycharm-professional-2019.1.3.tar.gz -C /opt/

进入解压后的bin目录中

cd /opt/pycharm-2019.1.3/bin

开始安装Pycharm:

sh ./pycharm.sh

图片3

图片4

图片5

图片6

输入pycharm激活码

将以下代码块内容全部复制进框中

代码语言:javascript复制
MTW881U3Z5-eyJsaWNlbnNlSWQiOiJNVFc4ODFVM1o1IiwibGljZW5zZWVOYW1lIjoiTnNzIEltIiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiSUkiLCJwYWlkVXBUbyI6IjIwMTktMTEtMDYifSx7ImNvZGUiOiJBQyIsInBhaWRVcFRvIjoiMjAxOS0xMS0wNiJ9LHsiY29kZSI6IkRQTiIsInBhaWRVcFRvIjoiMjAxOS0xMS0wNiJ9LHsiY29kZSI6IlBTIiwicGFpZFVwVG8iOiIyMDE5LTExLTA2In0seyJjb2RlIjoiR08iLCJwYWlkVXBUbyI6IjIwMTktMTEtMDYifSx7ImNvZGUiOiJETSIsInBhaWRVcFRvIjoiMjAxOS0xMS0wNiJ9LHsiY29kZSI6IkNMIiwicGFpZFVwVG8iOiIyMDE5LTExLTA2In0seyJjb2RlIjoiUlMwIiwicGFpZFVwVG8iOiIyMDE5LT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nuTCUq1meE6GkKc4D/cXmgpOyW/1SmBz3XjVIi/zprZ0zf3qH5mkphtg6ksjKgKjmx1cXfZAAX6wcDBNaCL Ortep1Dh8xDUbqbBVNBL4jbiL3i3xsfNiyJgaZ5sX7i8tmStEpLbPwvHcByuf59qJhV/bZOl8KqJBETCDJcY6O2aqhTUy 9x93ThKs1GKrRPePrWPluud7ttlgtRveit/pcBrnQcXOl1rHq7ByB8CFAxNotRUYL9IF5n3wJOgkPojMy6jetQA5Ogc8Sm7RG6vg1yow==

新建文件

图片7 |

点开 Project interpreter.Python 3.6 的三角图标,并选择 Existing interpreter 的路径。点击 Create 创建。

图片8

取消 Tip of the Day 的 Show tips on startup ,点击关闭按钮 Close

图片9

安装完毕

3.当Pycharm关闭后再次启动方式如下:

cd /opt/pycharm-2019.1.3/bin

sh ./pycharm.sh

安装pycharm 2019 完成

二、在Ubuntu18.04中创建Pycharm的快捷方式

1.终端进入此路径:cd /usr/share/applications

2.执行命令:sudo touch pycharm.desktop

3.执行命令:sudo vim pycharm.desktop

4.复制下面代码到pycharm.desktop文件中,注意修改其中标记的两项的路径

代码语言:javascript复制
[Desktop Entry]

Version=1.0

Type=Application

Name=PyCharm

Icon=/opt/pycharm-pycharm-2019.1.3/bin/pycharm.png    #注意此处的路径

Exec="/opt/pycharm-pycharm-2019.1.3/bin/pycharm.sh" %f   #注意此处的路径

Comment=The Drive to Develop

Categories=Development;IDE;

Terminal=false Startup

WMClass=jetbrains-pycharm

5.编辑完毕,保存并退出后,修改文件权限:

chmod u x pycharm.desktop

6.在系统搜索处输入pycharm,双击启动即可。

图片10

注意:固定不到桌面快速启动栏,只能输入Activities 中运行

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/175189.html原文链接:https://javaforall.cn

0 人点赞