Configure the Python Combat development environment

Source: Internet
Author: User

First, install Python and Easy_install and Pip

The new version of Linux should come with these environments, and you can look for Google configurations without your own.

Second, configure the virtualized environment that Python runs:

Benefits: Installation upgrades, uninstallation, and correction of Python libraries, suites, etc. do not affect the python environment in the physical machine and the Python environment in other virtual environments, and the program runs independently of each other.

Libraries that need to be installed:

Pip Install Virtualenv

Export Virtualenv_distrinutr=true

mkdir ~/work

CD ~work

Virtualenv Env_name (env or ENV recommended)

#为了不要每次都输入这样的命令, you can export Virtualenv_use_distribute = true unset drop this environment variable when not needed

Iii. activating the operating environment & exiting the operating environment

SOURCE Env/bin/activate

Deactivate

Iv. installation of Virtualenvwrapper (advanced tools)

1 Install Virtualenvwrapper 2 vim  ~/. BASHRC34if [-f/usr/local/bin/virtualenvwrapper.  SHthen5      Export workon_home = $HOME/. Virtualenvs6     Source/usr/local/bin/virtualenvwrapper. SH 7 fi 8 9 Source ~/.BASHRC

V. Entering the Environment View environment Delete environment

1 mkvirtualenv newenv 2 ls -la $HOME/. Virtualenvs3workon newenv4Workon5 Rmvirtualenv newenv

Configure the Python Combat development environment

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.