Install virtualenv and fabric on windows

Source: Internet
Author: User
Tags virtualenv

Http://stackoverflow.com/questions/9000380/install-python-fabric-on-windows




Fabric installs just fine on Windows, but your'll need to either:


Have a compiler installed to build the Pycrypto dependency during Setup. If you don ' t have one already, install MinGW or your can use the free version of MSVC.
Install pre-built Windows binaries for pycrypto here.


I install it in a virtualenv like so:


Virtualenv fabenv
Fabenv\scripts\activate.bat
Pip Install Fabric


Another Tip:when you have it up and running your can use pageant to load your SSH keys and avoiding using password-based a Uthentication



Solution using Cygwin:


Install Cygwin
Select Packages:python, GCC, Wget and Openssh
In Cygwin Run:python--version to verify your Python version
From Http://pypi.python.org/pypi/setuptools download. Egg version of Setuptools (not the Windows. exe), for your versi On of Python.
In Cygwin run:sh setuptools-*.egg to install downloaded Setuptools
In Cygwin run:easy_install pip (i-just like Pip, I-i-i-i-could the next step with Easy_install as OK)
In Cygwin run:pip install fabric
And now comes the crucial part:if the above step fails with some ' could not remap Xxx.dll ' error, on the install of the P Ython SSH Package Then:
Exit Cygwin
Start a cmd.exe a in it Run:c:\cygwin_path\bin\ash.exe
In the ash shell run:/bin/rebaseall
In Cygwin retry:pip install fabric, it should succeed now:)


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.