Installing Fabric On Windows (Error No Module Called Readline)

前端 未结 6 977
星月不相逢
星月不相逢 2021-01-03 08:58

I\'m trying to use the Fabric 0.1.1 deploy tool (http://docs.fabfile.org/) on Windows and we\'re running into an issue with the readline mo

相关标签:
6条回答
  • 2021-01-03 09:28
    1. Download and run easy_install installer for your python version from http://pypi.python.org/pypi/setuptools#downloads . ie: setuptools-0.6c11.win32-py2.6.exe
    2. On the command prompt, lauch easy_install -U fabric to install the last fabric release.
    0 讨论(0)
  • 2021-01-03 09:29

    Give this readline a try. It is a module for Windows that allows additional features in IPython that aren't native and might work with what you are trying to do.

    0 讨论(0)
  • 2021-01-03 09:30

    Readline should be available with Cygwin, if you want to move your entire stack in that direction.

    0 讨论(0)
  • 2021-01-03 09:31

    The readline module you are trying to install with easy_install is for OS X, not windows. There are Windows-compatible replacements for readline out there but perhaps you should first try updating fabric itself to a more current version (0.9 is out there now).

    Grepping the source of the 0.9 version does not find any dependencies on readline.

    0 讨论(0)
  • 2021-01-03 09:34

    Following these steps exactly worked for me:

    1) Installed using the MSI installer for x86 from here.

    2) Installed in the default C:\Python27 directory.

    3) Create a new directory: C:\Python27\Scripts

    4) Added C:\Python27 and C:\Python27\Scripts to the system path:

    Advanced system settings>Environment Variables>Path

    5) Download the distribute_setup.py from here into C:\Python27\Scripts

    6) Open a command line, navigate to C:\Python27\Scripts, run: 'python distribute_setup.py'

    7) now run 'easy_install pip'

    8) now run 'pip install fabric'

    9) You should get an error saying PyCrypto couldn't install. You can download the pre-build Windows binary from here. Run this to install PyCrypto.

    10) run 'pip install fabric' again and it should say everything is installed.

    11) in a different directory (let's say c:\dev\hello) create a fabfile.py and add the following code:

    def hello(name="world"):
        print("Hello %s!" % name)
    

    12) cd to this directory and run 'fab hello:working'. You should see output say

    Hello working!
    
    Done.
    
    0 讨论(0)
  • 2021-01-03 09:39

    0.1.1 is an older version, I believe. I have no problem installing Fabric on Windows with ActivePython (w/ PyPM):

    C:\> pypm install fabric
    Ready to perform these actions:
    The following packages will be installed:
     fabric-0.9.0 pycrypto-2.0.1
    Get: [pypm.activestate.com] fabric 0.9.0-1
    Get: [pypm.activestate.com] pycrypto 2.0.1-1
    Installing fabric-0.9.0
    Fixing script C:\Users\sridharr\AppData\Roaming\Python\Scripts\fab-script.py
    Installing pycrypto-2.0.1
    
    0 讨论(0)
提交回复
热议问题