Python virtualenv Development environment

Source: Internet
Author: User

# pip source settings [[email protected] ~]# Cat/root/.pip/pip.conf[global]trusted-host=pypi.douban.com # This will prompt this in virtual env, Configuration does not prompt for Index-url=http://pypi.douban.com/simple


[[Email protected] ~]# pip install virtualenv # Install Virtualenv[[email protected] ~]# virtualenv env # Initialize a virtual environment named Envnew Python executable in env/bin/pythoninstalling setuptools, Pip, Wheel...done. [email protected] ~]# ls Env/bin include Lib lib64 pip-selfcheck.json share


[[email protected] ~]# source env/bin/activate  #  into the virtual environment (ENV) [[email  protected] ~]# pip list   #  See which PIP packages are loaded ipython  (3.1.0) Mako  (1.0.1) markupsafe  (0.23) pip  (7.0.3) setuptools  (17.0) wheel  (0.24.0) (env) [[email protected]  ~]# pip install jinjacollecting jinja  downloading http:// pypi.douban.com/packages/source/j/jinja/jinja-1.2.tar.gz  (252kB)     100% | ████████████████████████████████| 253kb 4.2mb/sbuilding wheels for collected  Packages: jinja  running setup.py bdist_wheel for jinja  stored  in directory: /root/.cache/pip/wheels/b5/7e/80/ ee19590e5bb4e85318e3de197ff9afd26d8c75a4a34a08b815successfully built jinjainstalling collected  packages: jinjasuccessfully installed jinja-1.2 (env) [[Email protected] ~]# pip list   #  again to see which PIP packages are installed ipython  (3.1.0) Jinja  ( 1.2) mako  (1.0.1) markupsafe  (0.23) pip  (7.0.3) setuptools  (17.0) wheel  (0.24.0) (env) [[ email protected] ~]# deactivate  #  exiting the virtual environment


Reference Link: Python development Combat (Japanese version)

This article is from the "The-way-to-cloud" blog, make sure to keep this source http://iceyao.blog.51cto.com/9426658/1660232

Python virtualenv 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.