python-Tool Installation

Source: Internet
Author: User

Installation of python,setuptools,pip,virtualenv under Windows

Windows 2003 platform, install PYTHON2.7.4,PYTHON3.3,SETUPTOOLS,PIP,VIRTUALENV.

Install Python2.7.4 (current version is 2.7.6), installation path: C:\Python27

Install Python3.3.2, installation path: C:\PYTHON33

After the installation is complete, do not add the Python directory to the system's environment variables.

The PIP and virtualenv after the priority installation Setuptools can be installed by Easy_install.

Setuptools can find the way to install Windows in Http://pypi.python.org/pypi/setuptools, now the official website is recommended to use the download ez_setup.py to install.

After downloading the ez_setup.py,cmd, route to the download directory using:

code
1 C:\Python27\Scripts\python.exe ez_setup.py

After downloading the latest version, the system will automatically install Setuptools, after installation, there will be a easy_install.exe executable file under scripts.

When the installation is complete Setuptools, the rest is relatively simple.

Code
12345 # 安装pip>C:\Python27\Scripts\easy_install.exe pip#安装完成pip之后,接着安装virtualenv>C:\Python27\Scripts\easy_install.exe virtualenv==1.10.1

After installation, the Pip.exe and Virtualenv.exe files can also be seen under scripts. Note that the current version of Irtualenv is 1.11, install the time if not set ==1.10.1, the default will install the latest version, and the 1.11 version of the virtualenv is problematic, after installation 1.11, in the creation of the environment will fail, error: Setuptools pip failed with error code 1. This problem is 1.11 of the problem itself, with 1.10.1 version, without this problem, so we need to explicitly version 1.10.1 when installing.

After the installation is complete virtualenv, you can create a virtual environment:

Code
12 #创建虚拟环境: First in CMD route to the directory where the virtual environment needs to be created, the virtual environment created is a folder under that directory >c:\python27\scripts\virtualenv.exe Vproject

Once created, we can check if there are any files under Vproject and verify that there are Activate.bat and deactivate.bat two files under Vproject\scripts\. The virtual environment is now created. Running the virtual environment requires only running Activate.bat under CMD and operating in the current window-all operations are now in the virtual environment.


This article is from the "Mr_computer" blog, make sure to keep this source http://caochun.blog.51cto.com/4497308/1559318

python-Tool Installation

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.