到官网下载pycharm安装包,可以下载免费的社区版
https://www.jetbrains.com/pycharm/download/#section=linux
之后进行解压
sudo tar -zxvf pycharm-community-2018.3.5.tar.gz
解压之后得到一个pycharm-community-2018.3.5的文件夹
cd 到pycharm-community-2018.3.5/bin 路径下,运行sh pycharm.sh即可打开pycharm
将pycharm快捷方式添加到桌面
首先sudo gedit /usr/share/applications/Pycharm.desktop
在新建的文件中添加
[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm3
Comment=Pycharm3:The Python IDE
Exec="/home/xxxx/pycharm/pycharm-community-2018.3.5/bin/pycharm.sh"
Icon=/home/xxxx/pycharm/pycharm-community-2018.3.5/bin/pycharm.png
Terminal=pycharm
Categories=Pycharm
然后保存退出
加权限
sudo chmod 777 /usr/share/applications/Pycharm.desktop
然后将/usr/share/applications/Pycharm.desktop文件拷贝到桌面,双击即可运行。
网友评论