写在前面
本教程适用于 Pycharm 2022.2.3 以下所有版本
一、版本信息
虚拟机产品:VMware® Workstation 17 Pro 虚拟机版本:17.0.0 build-20800274
ISO映像文件:ubuntukylin-22.04-pro-amd64.iso
Pycharm版本:PyCharm 2022.3.3 (Professional Edition)
资源链接:
二、安装教程
1.下载Pycharm安装包与补丁
请读者根据自己Linux系统的版本以及Linux系统自带的Python版本与Pycharm的
破解补丁原网址:
https://segmentfault.com/a/1190000043441773
下载Pycharm安装包与补丁到物理机:
将下载好的文件
虚拟机中,将pycharm安装压缩包放入虚拟机中的 ~/下载 目录下,将补丁放到桌面:
2.解压并移动文件夹
将Pycharm安装包解压缩,把解压缩后的文件放到/usr/local目录下,并且重命名:
将补丁文件(注意是整个文件)移动到与Pycharm同一目录下(这里是/usr/local目录下,请读者根据自己的实际情况进行移动,位置并不绝对):
3.修改配置文件
进入/usr/local/pycharm/bin目录下,修改配置文件pycharm64.vmoptions(2018版本及以下不需要在配置文件pycharm64.vmoptions中输入最后两行代码,当然所有的注释也没必要写入😊),👉切勿👈在修改配置文件时加空格(请笔者自身检查一下编辑后的文件的每一行的尾部有无空格,如有空格,请自行删除),会报错找不到或无法加载主类 A!!!!!!
注意下方图片红色部分,需要读者根据自己自身情况进行修改(读者补丁所放的实际位置的绝对路径,笔者这里是/usr/local目录下)
4.更改环境变量
读者可根据自身实际情况决定这一步是否进行,该步骤的意义在于我们以后不需要每次都到pycharm文件夹下去启动程序。
若配置完成环境变量后,在已经安装Java的情况下使用jps时提示:找不到命令 “jps”,可能是环境变量配置顺序影响,可参考以下文章解决:
https://blog.csdn.net/qq_67822268/article/details/136889908
5.启动并激活Pycharm
使用命令pycharm.sh启动pycharm:
注意:启动时启动终端不能关闭!!!
勾选后点击继续:
选择不发送:
选择输入激活码(激活码在文末)激活:
至此Pycharm安装成功!!!
读者可以自行创建项目使用:
激活码:
VAE9B0CRYZ-eyJsaWNlbnNlSWQiOiJWQUU5QjBDUllaIiwibGljZW5zZWVOYW1lIjoi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