Python IDE Dedicated editor pycharm download and configure the installation process (Ubuntu environment)

Source: Internet
Author: User
Tags pycharm download

These days in the toss of the Python environment, show the laptop installed Ubuntu Linux environment System, and then the basic Python environment is installed after the installation of the legendary in its platform to install the best code editing and management tools Pycharm, so based on the online tutorial installation, But in the process will encounter a variety of problems, so today the entire installation of the Pycharm process are sorted down with their own explanations, one will need to reinstall the system installation can be used directly, and secondly if there are friends need to use to reference.

First, Pycharm download and installation process

Official website: https://www.jetbrains.com/pycharm/download/

There are paid and free versions of the pycharm here, and we use the free version (Community Edition) enough.

The current version is pycharm-community-4.0.4, the downloaded file is. tar.gz compression, we put the downloaded file into the known drive letter file, and then need to extract.

After the decompression is complete, pycharm.sh execute the file in the Bin folder to install. The installation will prompt "No JDK found." Please validate either PYCHARM_JDK, Jdk_home or java_home "error, it seems that temporarily can not install, need to install the JDK and other components package environment.

Second, install the JDK

sudo add-apt-repository Ppa:webupd8team/java
sudo apt-get update
sudo apt-get install Oracle-java8-installer

This installation process time is really long, I was installed last night, one hours or so, until 1 o'clock to install, as long as this is finished after the back of the fast.

With "java-version" detection, if a version number appears, there is no problem.

Third, configure the $java_home environment variable

sudo update-alternatives--config java

Check the path to Java.

Edit the sudo nano/etc/environment file to add a java_home= "/usr/lib/jvm/java-8-oracle" line.

Load the file test start source/etc/environment and then look at the file path echo $JAVA _home

IV. Install the Pycharm tool again

Now that the environment is configured, we then perform the SH pycharm.sh file installation.

Pop-Up selection box select the first, click OK to continue, then the back screen we will default. Create a project need to enter a password, we set a password.

In this way, our Pycharm tool has been installed and we can add it to the Desktop toolbar and make it easy to start every time you need it. If the Ubuntu version we use does not have a way to add it, you can do so.

Five, set the Pycharm Quick Start mode

Run sudo gedit/usr/share/applications/pycharm.desktop

Then add it in the text that pops up:

[Desktop Entry]
Type=application
Name=pycharm
Genericname=pycharm3
Comment=pycharm3:the Python IDE
Exec= "/xxx/pycharm-community-4.0.4/bin/pycharm.sh"%f
Icon=/xxx/pycharm-community-4.0.4/bin/pycharm.png
Terminal=pycharm
Categories=pycharm;

The two paths in exec and icon need to be filled out by looking at our own true path.

In this way, we can see the pycharm icon directly in the desktop shortcut and we can quickly open it by moving to the taskbar.

To summarize, the Pycharm Editor cannot be installed directly and requires a JDK-based environment, and we need to install the environment before it can be installed. The whole process is still relatively simple, it is necessary to wait a little longer, this is not always tossing.

Python IDE Dedicated editor pycharm download and configure the installation process (Ubuntu environment)

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.