• notice
  • Congratulations on the launch of the Sought Tech site

Python environment construction and pip, fabric installation under windows

Python is not a new thing either.Today, the python environment has been set up under both windows and linux, and at the same time it is installed.Tian’s fabric module, write snacks here.

    First step: Of course, go to the official website to download python.It is not recommended to use python3.0 or above, anyway, 3.x and 2.The versions of.x are too different, and many modules and the like are incompatible.At first I installed python3.2 version and found that fabric currently only supports python2.6-2.7, so I changed it to python2.6.Later, when installing pip, I found that python has given up support for python2.6 and must be upgraded Only python2.7 or above can use Shuangwaiwai pip.So I finally chose python2.7 version.The last sentence is over: mainly because the company's server uses the python2.6.6 version.(I know one thing: centos system comes with python2.6.6)

Official website download address: https://www.python.org/downloads/windows/  This is in windows.I downloaded the 64-bit version here: Download Windows x86-64 MSI installer

    Step two: Install locally.Needless to say, install the same as the software. < /p>

    Step three: Add environment variables, not to mention, add the python installation path to the path variable.After completing this step, enter python in the CMD window of your windows to see the version information.If this step is unsuccessful, go up and find the reasons for yourself.Because this step is too simple.

python environment construction and pip, fabric installation under windows

    Step Four: Install pip, pip is a It's easy to use to download python modules, a bit like composer.But before you install pip, you need to use other methods to install pip.Advanced pip official website to download the pip version: https://pypi.python.org/pypi/pip/  Then unzip it in windows, enter this directory in cmd, and you will see a setup.py in it.The wrong thing is to do this thing, execute python setup.py install in cmd.Then the installation is successful.

   & nbsp;Step 5: In many cases, the installation fails in the fourth step, usually because of the lack of the setuptools module, because the installation of pip requires setuptools,So we need to download and install setuptools first! Address: http://pypi.python.org/packages/source/s/setuptools/setuptools-2.0.tar.gz  Same as installing pip above, unzip and enter the directory, execute python setup.py install, install After success, perform the fourth step, and then you will find that everything is OK.

    Step 6: Next, it’s easy to install any module of python, directly Just execute pip install fabric.The path of pip is not in the path by default.You can use the pip command directly by adding python/Scripts to the path.

Just like installing pip above, unzip into the directory, execute python setup.py install, and then execute the fourth step after the installation is successful, then you will find everything OK.

    Step 6: Next, it’s easy to install any module of python, directly Just execute pip install fabric.The path of pip is not in the path by default.You can use the pip command directly by adding python/Scripts to the path.

Just like installing pip above, unzip into the directory, execute python setup.py install, and then execute the fourth step after the installation is successful, then you will find everything OK.

    Step 6: Next, it’s easy to install any module of python, directly Just execute pip install fabric.The path of pip is not in the path by default.You can use the pip command directly by adding python/Scripts to the path.

Tags

Technical otaku

Sought technology together

Related Topic

0 Comments

Leave a Reply

+