Linux安装Pycharm
下载Pycharm安装包
- 下载Pycharm安装包(tar.gz)
https://www.jetbrains.com/pycharm/download/#section=linux
解压
- 解压到home目录下的一个pycharm的文件夹
1 | cd /home |
- 将压缩包移动到此文件夹下
1 | mv /home/kali/桌面/pycharm/pycharm-2023.1 /home/pycharm |
- 解压
1 | tar -zxvf pycharm-professional-2023.1.tar.gz |
更改host文件
1 | vim /etc/hosts |
- 在后面添加一行
1 | 0.0.0.0 account.jetbrains.com |
激活
原博主教学链接及破解补丁下载https://segmentfault.com/a/1190000043441773
- 将激活包放在和home下,和解压后的pycharm2023.1在同一目录
- 修改配置文件pycharm64.exe.vmoptions
1 | vim pycharm64.vmoptions |
- 在后面添加
1 | 引用补丁,开头必须以 -javaagent: 开头,后面跟着补丁的绝对路径(可根据你实际的位置进行修改),注意路径一定要填写正确,且不能包含中文,否则会导致 Pycharm 无法启动 |
安装并启动Pycharm
1 | cd /home/pycharm/pycharm-2023.1/bin |
启动后进入界面在Activation code
输入激活码(全部复制粘贴进去)
EUWT4EE9X2-
eyJsaWNlbnNlSWQiOiJFVVdUNEVFOVgyIiwibGljZW5zZWVOYW1lIjoic2lnbnVwIHNjb290ZXIiLCJhc3NpZ25lZU5h
bWUiOiIiLCJhc3NpZ25lZUVtYWlsIjoiIiwibGljZW5zZVJlc3RyaWN0aW9uIjoiIiwiY2hlY2tDb25jdXJyZW50VXNlIjpmY
WxzZSwicHJvZHVjdHMiOlt7ImNvZGUiOiJQU0kiLCJmYWxsYmFja0RhdGUiOiIyMDI1LTA4LTAxIiwicGFpZFVwVG
8iOiIyMDI1LTA4LTAxIiwiZXh0ZW5kZWQiOnRydWV9LHsiY29kZSI6IlBDIiwiZmFsbGJhY2tEYXRlIjoiMjAyNS0wOC
0wMSIsInBhaWRVcFRvIjoiMjAyNS0wOC0wMSIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiUFBDIiwiZmFsbGJh
Y2tEYXRlIjoiMjAyNS0wOC0wMSIsInBhaWRVc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O3CwGWSlTY74kE91zXB5mwWAx1jig+UXYc2w4RkVhy0//l
OmVya/PEepuuTTI4+UJwC7qbVlh5zfhj8oTNUXgN0AOc+Q0/WFPl1aw5VV/VrO8FCoB15lFVlpKaQ1Yh+DVU8ke
+rt9Th0BCHXe0uZOEmH0nOnH/0onD
创建桌面快捷方式
- 终端输入
1 | sudo gedit /usr/share/applications/Pycharm.desktop |
- 在打开的空文档下输入下面代码
1 | [Desktop Entry] |
- 进入/usr/share/applications,搜索pycharm 拖拽带桌面