[英]Unable to pip install --upgrade simplejson under cygwin
在Windows 10和64位Cygwin中安装了所有python软件包。 然后我使用python -m ensurepip
安装了pip。
之后, pip install --upgrade simplejson
会像这样出错
$ 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
已经可以通过CygWin安装获得,但升级出错了。
我假设你已经尝试通过安装程序安装simplejson,当你已经通过pip安装它。 这样做可能会导致问题。
如果您不知道如何同时删除pip版本以及Cygwin版本,我建议您寻求帮助。
OFF主题:(我仍然想知道为什么我的Cygwin上没有“pip3”,并且pip安装到2.7,即使在python3下运行。毁了我的Cygwin设置,最近也没有备份...... 叹了口气现在清除Python的东西...)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.