Problems installing Python Fabric on Windows 7

I am trying to install Python Fabric on Windows 7 using the tutorial from Getting Python and Fabric installed on Windows .

What i have done so far:

It seemed like normal. When I try to install Fabric via easy_install Fabric , it starts to download files, but then I get chmod error .

 Using c:\python27\lib\site-packages\fabric-1.3.4-py2.7.egg Processing dependencies for fabric Searching for pycrypto>=2.1,!=2.4 Reading http://pypi.python.org/simple/pycrypto/ Reading http://pycrypto.sourceforge.net Reading http://www.amk.ca/python/code/crypto Reading http://www.pycrypto.org/ Best match: pycrypto 2.5 Downloading http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.5.tar.gz Processing pycrypto-2.5.tar.gz Running pycrypto-2.5\setup.py -q bdist_egg --dist-dir c:\users\birgit\appdata\local\temp\easy_install-nzrlow\pycrypto-2.5\egg-dist-tmp-_pwkm4 The command "chmod" is spelled wrong or could not be found. Traceback (most recent call last): File "C:\Python27\Scripts\easy_install-script.py", line 8, in <module> load_entry_point('setuptools==0.6c12dev-r88846', 'console_scripts', 'easy_install')() File "C:\Python27\lib\site-packages\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\command\easy_install.py", line 1712, in main ... lots and lots of lines... (if they are relevant, I'll post them) File "C:\Python27\lib\distutils\dist.py", line 972, in run_command cmd_obj.run() File "setup.py", line 269, in run RuntimeError: chmod error 

Any suggestions to solve the problem?

+4
source share
4 answers

I just managed to install the fabric on the win7 box using information from different places on the network. It was very annoying, so to save other frustrations, I put together the following list.

And you're done, the fabric should work fine.

+8
source

You tried the binary installer from unofficial Windows binaries for Python extension packs: The base distribution may contain Fabric .

+2
source

If you are using virtualenv, you need to add one point to Petr Kochansky’s answer: when creating virtualenv, let him access the system packages so that he can see pycrypto. By default this prohibits.

These steps worked for me:

+1
source

1. Create a virtual disk (usually I put everything on the desktop)

2. Download the pycrypto binary code (appropriate for your installed version and python architecture - no python3 support at the moment) - http://www.voidspace.org.uk/python/modules.shtml

3. Go to the easy_install executable file (in the Lib \ site-packages section) in the virtualenv folder that you created and run pycrypto install - 'easy_install C: \ path \ to \ the \ download \ pycrypto-2.6.win-amd64 - py2.7.exe

4.Activate virtualenv and 'pip install fabric'

0
source

Source: https://habr.com/ru/post/1394649/


All Articles