Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos installs java and PyCharm2.7

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Install the Java environment

Java environment is not installed, it will be reported when PyCharm is installed

The steps to install the java environment are as follows:

1. Go to the official website http://www.oracle.com/technetwork/java/javase/downloads/index.html to download jdk-8u131-linux-x64.tar.gz and go to the / tmp path

2. Decompress jdk-8u131-linux-x64.tar.gz. The folder after decompression is jdk1.8.0_131.

Tar zxvf jdk-8u131-linux-x64.tar.gz

If you are not a root user, you can add sudo to the script to indicate that the administrator executes this command.

3. Create a java folder / usr/local/java in linux

Cp-r / tmp/ jdk1.8.0_131 / usr/local/java/ jdk1.8.0_131

4. Modify profile and add environment variables (configuration information is similar to windows)

-- enter the profile editor

Vi / etc/profile

-append the environment variable to the end of profile with the following additional information (the appended content is the same as windows, but the format is different)

After appending, press the ESC key and type the following command to save exit

: wq!

5. Compile profile

Soruce / etc/profile

6. Check whether java is installed successfully

Java-version

The following indicates a successful installation ^ _ ^

Install PyCharm

1. After the java installation is successful, you can install Pycharm and transfer the PyCharm installation package pycharm-2.7.4.tar.gz to the linux system / tmp folder.

2. Decompress pycharm-2.7.4.tar.gz to / tmp directory

Tar zxvf pycharm-2.7.4.tar.gz

Note: you can also tar zxf pycharm-2.7.4.tar.gz

Review the common parameters (^ _ ^):

-f: use the file name, remember that this parameter is the last parameter, only the file name can be followed, and the parameter must be entered.

3. Copy to / usr/local directory

Cp-r / tmp/charm-2.7.4 / usr/local

4. Under the / usr/local/pycharm-2.7.4/bin path, execute the following command, and the following warning appears

Start PyCharm and report to No Python interpreter selected

Solution:

Settings à Project Interpreter right-click to add the corresponding python version

Click OK, and the setting is complete.

5. NEW Project, you can write python programs ^ _ ^

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report