Ubuntu14.04 installation pycharm for Python development environment deployment, and supports pycharm using Chinese input

Source: Internet
Author: User

First, the goal

Implement /python development with pycharm Debugging Tools under Linux

Linux uses vi/vim tools to write Python, disadvantage: Debugging inconvenient, no code hints, jumps and many other functions.

Windows uses idle/pycharm/eclipse and so on, Environment pack installation trouble. Well-written code often has to be migrated to a Linux server environment.

Workaround: Install the Pycharm compiler directly in the Linux Environment .

Attached: aboutpycharm

Pycharm is a python IDEwith a complete set of tools tohelp users improve their efficiency when developing with the Python language, such as debugging, syntax highlighting, Project management, code jumps, smart tips, AutoComplete, Unit testing, versioning. In addition, the IDE provides advanced features to support professional Web development under the Django framework .

Second, the implementation process

2.1, installation pycharm

Pycharm:http://www.jetbrains.com/pycharm/download/(Open source community version is recommended)

2.2 Installing the pycharm JDK Environment

Pycharm need to resolve the JDK Environment, otherwise during the installation process error.

Execute a few command in turn

sudo add-apt-repository Ppa:webupd8team/java

sudo apt-get update

sudo apt-get install Oracle-java8-installer(here the environment pack is large, such as download stop exit, repeat to do)

The Oracle License dialog box is removed during the installation process , and you can choose to accept it.

When the installation is complete, run "java-version" or "Javac-version" to see if the installation was successful. If you get an output similar to the following, it indicates that the installation was successful.

[Email protected]:~# java-version

Java Version "1.8.0_66"

Java (TM) SE Runtime Environment (build 1.8.0_66-b17)

Java HotSpot (TM) 64-bit Server VM (build 25.66-b17, Mixed mode)

[Email protected]:~# javac-version

Javac 1.8.0_66

Configuring the java_home Environment

#sudo Apt-get Install Oracle-java8-set-default

#echo java_home= "/usr/lib/jvm/java-8-oracle" >>/etc/environment

#source/etc/environment

2.3 Installation pycharm.sh

Unzip the installed pycharm installation package, unzip and execute the pycharm.sh, and follow the default prompts.

Reference:

[Email protected]:/opt# sudo tar-zxvf pycharm-community-5.0.1.tar.gz

[Email protected]:/opt# sudo sh pycharm-community-5.0.1/bin/pycharm.sh

Then follow the default prompts to select OK to install down.

Normally use start pycharm, execute sudo sh pycharm-community-5.0.1/bin/pycharm.sh.

(1, reference page : http://www.cnblogs.com/zhcncn/p/4027025.html)

Third, Ubuntu Chinese Input Method

Introduced here Ubuntu14.04 Install Sogou Input method, and implement Pycharm can use Sogou Input method.

3.1 installing sogou Input Method

(1) : Uninstall FCITX

sudo apt-get purge fcitx*

(2) : to sogou official website download sogou Pinyin Input method, select your system corresponding package, my system is - bit of that so I chose the AMD64 of the

Http://pinyin.sogou.com/linux/?r=pinyin

(3) : With Gdebi This software installs, it is able to install all dependencies if you do not install Gdebi , please install the software first;

#sudo apt-get install Gdebi

#sudo gdebi sogou_pinyin_linux_1.0.0.0014_amd64.deb

(2, reference page:http://tieba.baidu.com/p/3020246301)

3.2 Change the pycharm.shto support the Chinese input

Sogou Chinese input in other programs under Linux can be used normally,linux pycharm can not use the Chinese input method.

This is related to the application environment of the Pycharm program. Add the following 3 options to the pycharm.sh configuration file :

Export GTK_IM_MODULE=FCITX

Export QT_IM_MODULE=FCITX

Export [Email PROTECTED]=FCITX

(3, reference page:http://www.myexception.cn/program/1867990.html)

Ubuntu14.04 installation pycharm for Python development environment deployment, and supports pycharm using Chinese input

Related Article

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.