Under Ubuntu16.04, python2.7 and python3.5 are installed by default, and in the terminal, enter "Python" or "python3" to view the specific version.
1. Configure the Pycharm JDK environment before installing pycharm
Pycharm requires JDK environment resolution, otherwise the error will be in the installation process.
Execute a few command in turn
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install Oracle-java8-installer(where the environment package is larger, such as the end of the download stop, repeated execution can)
The Oracle License dialog box will be selected for acceptance during the installation process.
When the installation is complete, run "java-version" or "javac-version" to see if the installation is successful. If you get an output similar to the following, the installation is successful.
root@ubuntu:~# java-version
Java Version "1.8.0_66"
Java (TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot (TM) 64-bit Server VM (build 25.66-b17, Mixed mode)
root@ubuntu:~# javac-version
Javac 1.8.0_66
Configuring the Java_home Environment
#sudo apt-get Install Oracle-java8-set-default
#echo java_home= "/usr/lib/jvm/java-8-oracle" >>/etc/environment "Note: with root, otherwise prompted without permission. 】
#source/etc/environment
Install pycharm.sh
Unpack and install the Pycharm installation package, unpack and execute pycharm.sh, follow the default prompt.
Reference:
root@ubuntu:/opt# sudo tar-zxvf pycharm-community-5.0.1.tar.gz
root@ubuntu:/opt# sudo sh pycharm-community-5.0.1/bin/pycharm.sh
Then follow the default prompts to select OK down to install.
Normally use start pycharm, perform sudo sh pycharm-community-5.0.1/bin/pycharm.sh.