想在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-120420100000107Iq75C621P7X1SFnpJDivKnX6zcwYOYaGK3euO3ehd1MiTT"2!Jny8bff9VcTSJk7sRDLqKRVz1XGKbMqw3G===== LICENSE END =====或者用户名:yueting3527===== LICENSE BEGIN =====93347-1204201000001FMHemWIs"6wozMZnat3IgXKXJ2!nV2I6kSO48hgGLa9JNgjQ5oKz1UsFFR8k"nGzJHzjQT6IBG!1fbQZn9!Vi===== LICENSE END =====