Construction of python+pycharm development environment under Ubuntu16.04

Source: Internet
Author: User
Tags unpack

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.