Ubuntu16.04下python+PyCharm开发环境的搭建

Linux下安装jdk并设置环境变量,The program ‘java’ can be found in the following packages:报错解决方案

1.oracle官网下载jdk8(Java SE)
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

解压路径 /usr/lib/jvm

2.下载完成后

vim /etc/profile
#Jdk Config
30 JAVA_HOME=/usr/lib/jvm/jdk1.8.0_231
31 JAVA_BIN=/usr/lib/jvm/jdk1.8.0_231/bin
32 PATH= P A T H : PATH: PATH:JAVA_BIN
33 CLASSPATH= J A V A H O M E / l i b / d t . j a r : JAVA_HOME/lib/dt.jar: JAVAHOME/lib/dt.jar:JAVA_HOME/lib/tools.jar
34 export JAVA_HOME JAVA_BIN PATH CLASSPATH
source /etc/profile
查看 javac -version

3.从PyCharm官网http://www.jetbrains.com/pycharm/download/下载最新Linux版安装文件。
tar xzvf pycharm-professional-4.5.3.tar.gz …(相应路径)
cd pycharm-4.5.3/bin
sh pycharm.sh

你可能感兴趣的:(励志)