官网介绍Installation Instructions
- Copy the pycharm-2017.1.tar.gz to the desired installation location
(make sure you have rw permissions for that directory) - Unpack the pycharm-2017.1.tar.gz using the following command:
tar -xzf pycharm-2017.1.tar.gz - Remove the pycharm-2017.1.tar.gz to save disk space (optional)
- Run pycharm.sh from the bin subdirectory
详细步骤
1、https://www.jetbrains.com/pycharm/download/#section=linux
2、(1) Copy the pycharm-*.tar.gz to the desired installation location (make sure you have rw permissions for that directory)
$ cd Downloads/
(2)Unpack the pycharm-*.tar.gz using the following command: tar xfz pycharm-*.tar.gz
$ tar xfz pycharm-*.tar.gz
(3)Remove the pycharm-*.tar.gz to save disk space (optional)
$ rm pycharm-*.tar.gz
(4)Run pycharm.sh from the bin subdirectory
$ cd pycharm/bin/
$ ./pycharm.sh
3、一直默认
4、添加桌面快捷方式
$ sudo gedit /usr/share/applications/Pycharm.desktop
[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm3
Comment=Pycharm3:The Python IDE
Exec="~/pycharm/bin/pycharm.sh" %f
Icon=~/pycharm/bin/pycharm.png
Terminal=pycharm
Categories=Pycharm;
下面看下第二种方法:
1、安装jdk1.8
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
2、设置环境变量
输入vim ~/.bashrc,在文件末尾添加
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
3、使配置生效 source ~/.bashrc
4、java -version 查看安装java的版本
5、官网下载社区版:pycharm-community-2016.2.3.tar
6、解压tar -zxvf pycharm-community-2016.2.3.tar
7、pycharm解压即可用,每次使用的时候直接运行pycharm-community-2016.2.3/bin/pychar.sh即可