由于WingIDE无法调用fcitx输入中文,故使用pycharm,自我感激pycharm体验更好一点
pycharm的下载与安装
1.下载pycharm
pycharm官网下载链接:https://www.jetbrains.com/pycharm/download/#section=linux
请注意下载对应系统的professional版本
2.解压缩并移动至/opt
tar -xzvf pycharm-professional-2017.3.3.tar.gz
mv pycharm-2017.3.3 /opt
3.进入解压后的pycharm目录中的bin目录
cd /opt/pycharm-2017.3.3/bin
4.在bin目录下执行pycharm.sh文件
./pycharm.sh
接下来安装步骤就不再赘诉
安装JAVA JDK
1.下载最新的JAVA JDK
jdk-9.0.4_linux-x64_bin.tar.gz
2.解压缩并移动至/opt
tar -xzvf jdk-9.0.4_linux-x64_bin.tar.gz
mv jdk-9.0.4 /opt
cd /opt/jdk-9.0.4
3.设置变量环境
1)执行 vi ~/.bashrc ,并添加下列内容
#install JAVA JDK
export JAVA_HOME=/opt/jdk-9.0.4
export CLASSPATH=.:${JAVA_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
2)执行 source ~/.bashrc
4.安装并注册
执行:
update-alternatives --install /usr/bin/java java /opt/jdk-9.0.4/bin/java 1
update-alternatives --install /usr/bin/javac javac /opt/jdk-9.0.4/bin/javac 1
update-alternatives --set java /opt/jdk-9.0.4/bin/java
update-alternatives --set javac /opt/jdk-9.0.4/bin/javac
查看结果
update-alternatives --config java
update-alternatives --config javac
5.测试
java --version
如果未报错,即安装配置成功
破解pycharm
破解补丁:https://pan.baidu.com/s/1nuTVMg5
1.将下载的破解补丁包放至在pycharm安装bin目录下
2.在pycharm.vmoptions ,pycharm64.vmoptions两文件的最后加入相同的一行代码即可,具体为:
vi /opt/pycharm-2017.3.3/bin/pycharm.vmoptions
vi /opt/pycharm-2017.3.3/bin/pycharm64.vmoptions
打开文件后在最后加入下列内容:
-javaagent:/opt/pycharm-2017.3.3/bin/JetbrainsCrack-2.6.10-release-enc.jar
执行bin目录下的pycharm.sh文件并完成激活
./pycharm.sh
此时会出现激活页面,然后在Acrivation code中选择界面的时候,写入下面注册代码即可激活完成(有效期到2099)
ThisCrackLicenseId-{
"licenseId":"ThisCrackLicenseId",
"licenseeName":"idea",
"assigneeName":"",
"assigneeEmail":"[email protected]",
"licenseRestriction":"For This Crack, Only Test! Please support genuine!!!",
"checkConcurrentUse":false,
"products":[
{"code":"II","paidUpTo":"2099-12-31"},
{"code":"DM","paidUpTo":"2099-12-31"},
{"code":"AC","paidUpTo":"2099-12-31"},
{"code":"RS0","paidUpTo":"2099-12-31"},
{"code":"WS","paidUpTo":"2099-12-31"},
{"code":"DPN","paidUpTo":"2099-12-31"},
{"code":"RC","paidUpTo":"2099-12-31"},
{"code":"PS","paidUpTo":"2099-12-31"},
{"code":"DC","paidUpTo":"2099-12-31"},
{"code":"RM","paidUpTo":"2099-12-31"},
{"code":"CL","paidUpTo":"2099-12-31"},
{"code":"PC","paidUpTo":"2099-12-31"}
],
"hash":"2911276/0",
"gracePeriodDays":7,
"autoProlongated":false}
添加快捷启动方式
vi /usr/share/applications/pycharm.desktop
在此文件中添加如下内容:
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Pycharm
GenericName=Pycharm3
Comment=Pycharm3:The Python IDE
Exec=sh /opt/pycharm-2017.3.3/bin/pycharm.sh
Icon=/opt/pycharm-2017.3.3/bin/pycharm.png
Terminal=false
Categories=Development