2016-05-31 9 views
1

In Windows 10 und 64bit Cygwin installiert heute mit allen Python-Paketen. Ich habe dann Pip mit python -m ensurepip installiert.Kann nicht pip installieren --upgrade simplejson unter cygwin

Danach die pip install --upgrade simplejson schief geht wie dieses

$ pip install --upgrade simplejson 
Collecting simplejson 
    Using cached simplejson-3.8.2.tar.gz 
Installing collected packages: simplejson 
    Found existing installation: simplejson 3.6.5 
    Uninstalling simplejson-3.6.5: 
     Successfully uninstalled simplejson-3.6.5 
     1 [main] python2.7 7452 child_info_fork::abort: unable to map C:\cygwin64\lib\python2.7\site-packages\simplejson\_speedups.dll, Win32 error 126 
    Error [Errno 11] Resource temporarily unavailable while executing command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-_nSo9B/simplejson/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-yReBDw-record/install-record.txt --single-version-externally-managed --compile 
    Running setup.py install for simplejson ... error 
    Rolling back uninstall of simplejson 
Exception: 
Traceback (most recent call last): 
    File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main 
    status = self.run(options, args) 
    File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 317, in run 
    prefix=options.prefix_path, 
    File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 742, in install 
    **kwargs 
    File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 880, in install 
    spinner=spinner, 
    File "/usr/lib/python2.7/site-packages/pip/utils/__init__.py", line 678, in call_subprocess 
    cwd=cwd, env=env) 
    File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ 
    errread, errwrite) 
    File "/usr/lib/python2.7/subprocess.py", line 1231, in _execute_ch 

simplejson ist bereits durch die Installation von Cygwin, aber das Upgrade schief geht.

Antwort

0

Ich nehme an, Sie versuchen, Simplejson über das Installationsprogramm zu installieren, wenn Sie es bereits über Pip installiert haben. Dies kann zu Problemen führen, wenn dies geschieht.

Ich würde empfehlen, Hilfe zu suchen, wenn Sie nicht wissen, wie Sie sowohl die Pip-Version als auch die Cygwin-Version manuell entfernen.

OFF THEMA: (Ich wundere mich immer noch, warum es kein "pip3" auf meinem Cygwin gibt und dieses pip auf dem 2.7 installiert ist, selbst wenn es unter python3 lief. Ruinierte mein Cygwin-Setup, das kürzlich auch kein Backup hat .. . seufz Python Zeug jetzt reinigen müssen ...)