Using pip to install modules in python failing

后端 未结 6 2168
被撕碎了的回忆
被撕碎了的回忆 2021-01-04 08:22

I\'m having trouble installing python modules using pip. Below is the output from the command window:

Note that I installed pip immediately before trying to install

6条回答
  •  执念已碎
    2021-01-04 08:46

    I ran into a similar problem when trying to install ipython without anaconda. First pip could not find 'cl.exe' when doing pip install jupyter and after adding to PATH, i got the failed with exit status 2 error.

    You could try playing around with VS files to get it to work, but the easiest way around it for me was to:

    1) Download the .tar.gz file from https://pypi.python.org/pypi 2) extract in a folder 3) run setup.py in the extracted folder from cmd:

    c:\> cd 
    c:\>python setup.py install
    

    note if, like me, you don't have python in the PATH because you have python 32b and 64b for different things, you will have to point to python manually (change second command to):

    c:\>pythoninstallpath\python setup.py install
    

    and it will automatically copy the library and install all its dependencies in python install location under the appropriate lib folder.

    So that you can see how it worked, here it is for me. but change directories to match whatever you are using:

    i have the extracted folder with ipython's setup.py at "L:\python\py27_32b\ipython-5.3.0" and python installed at "L:\python\py27_32b\install"

    c:\users\vlox>L:
    L:\>cd "python\py27_32b\ipython-5.3.0"
    L:\python\py27_32b\ipython-5.3.0>L:\python\py27_32b\install\python setup.py install
    

    and voila!

    hope this helps

提交回复
热议问题