想在ubuntu下学习python开发,IDE准备使用pycharm。记录一下安装过程:

要想运行pycharm,需要有java环境,因为pycharm是用java编写的。ubunutn系统默认安装的是openjdk,而我们需要的是oracle java。

搜索oracle的java软件包:

apt-cache search oracle-java 搜不到任何包。

搜索openjdk包:

apt-cache search java7 出现类似以下安装包:

openjdk-7-jdk - OpenJDK Development Kit (JDK)

openjdk-7-jre - OpenJDK Java runtime, using Hotspot JIT

openjdk-7-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)

……

从ppa下载oracle的java到本地:

sudo add-apt-repository ppa:webupd8team/java

更新apt:

sudo apt-get update

更新完成后,再搜索一下:

sudo apt-cache search oracle-java

有了:

oracle-jdk7-installer - Oracle JDK7 Installer meta package

oracle-java7-installer - Oracle Java(TM) Development Kit (JDK) 7

oracle-java6-installer - Oracle Java(TM) Development Kit (JDK) 6

oracle-java8-installer - Oracle Java(TM) Development Kit (JDK) 8

oracle-java7-set-default - Set Oracle JDK 7 as default Java

oracle-java6-set-default - Set Oracle JDK 6 as default Java

oracle-java8-set-default - Set Oracle JDK 8 as default Java

安装:

sudo apt-get install oracle-java7-installer

运行pycharm:

解压下载的pycharm,进入解压后的目录,执行

 ./bin/pycharm.sh

然后根据提示操作,输入key即可。

附加网上找的可用的注册码:

用户名:

EMBRACE

 

===== LICENSE BEGIN =====

14203-12042010
0000107Iq75C621P7X1SFnpJDivKnX
6zcwYOYaGK3euO3ehd1MiTT"2!Jny8
bff9VcTSJk7sRDLqKRVz1XGKbMqw3G
===== LICENSE END =====
或者
用户名:yueting3527
===== LICENSE BEGIN =====
93347-12042010
00001FMHemWIs"6wozMZnat3IgXKXJ
2!nV2I6kSO48hgGLa9JNgjQ5oKz1Us
FFR8k"nGzJHzjQT6IBG!1fbQZn9!Vi
===== LICENSE END =====