前言
由于笔者经常需要在不同的操作系统(比如Win10/Linux/MacOS等)下进行Python代码的编写以及调试,所以就经常需要安装不同版本的PyCharm,虽然网上都能够找到相关的教程,但是多半还是需要折腾一下。这里对Linux系统(Ubuntu)下的安装过程做一个简单的记录,仅供大家参考。
方法
1) OpenJDK 下载安装
点击官方下载地址,选择“jdk-13.0.2_linux-x64_bin.deb
”进行下载和安装。
然后在终端输入命令查看是否安装成功:
$ java -version
2) pycharm 下载安装
进入PyCharm官网,选择合适的版本进行下载,这里笔者选择 pycharm-2018.2.4进行安装。
Fig2.jpg然后将下载的安装包文件 pycharm-professional-2018.2.4.tar.gz 解压缩。
接下来下载破解补丁: JetbrainsIdesCrack-4.2-release.jar(下载链接和提取码由Frederic_Bala提供)。
将破解文件复制到bin目录, 修改pycharm.vmoptions和pycharm64.vmoptions这两个文件,在文件最后加入:
-javaagent:/opt/pycharm-2018.2.4/bin/JetbrainsIdesCrack-4.2-release
运行:
$ sh ./pycharm.sh
提示输入激活码,复制以下信息到指定的位置:
ThisCrackLicenseId-{ "licenseId":"ThisCrackLicenseId", "licenseeName":"Rover12421", "assigneeName":"", "assigneeEmail":"rover12421@163.com", "licenseRestriction":"For Rover12421 Crack, Only Test! Please support genuine!!!", "checkConcurrentUse":false, "products":[ {"code":"II","paidUpTo":"9998-12-31"}, {"code":"DM","paidUpTo":"9998-12-31"}, {"code":"AC","paidUpTo":"9998-12-31"}, {"code":"RS0","paidUpTo":"9998-12-31"}, {"code":"WS","paidUpTo":"9998-12-31"}, {"code":"DPN","paidUpTo":"9998-12-31"}, {"code":"RC","paidUpTo":"9998-12-31"}, {"code":"PS","paidUpTo":"9998-12-31"}, {"code":"DC","paidUpTo":"9998-12-31"}, {"code":"RM","paidUpTo":"9998-12-31"}, {"code":"CL","paidUpTo":"9998-12-31"}, {"code":"PC","paidUpTo":"9998-12-31"} ], "hash":"2911276/0", "gracePeriodDays":7, "autoProlongated":false}
点击激活,则会提示激活成功!
3)PyCharm 软件设置
设置编译器的路径:
/path/to/your/Anaconda3/bin/python
设置界面风格(待补充):
- 设置快捷键
设置一个快捷键,这样平时使用的时候,只需要在终端输入一个简单的命令,就可以启动PyCharm软件了,比如:
alias pyc='sh /opt/pycharm-2018.2.4/bin/pycharm.sh'
这样,只要在终端输入:
$ pyc
然后就可以运行PyCharm软件了。
Fig3.jpg Fig4.jpg
网友评论