[英]pip error while installing package in Cygwin/Python2.7
I installed Python2.7.3 in Cygwin using this guide , I then installed pip from source. 我使用本指南在Cygwin中安装了Python2.7.3,然后我从源代码安装了pip。
When I try to use pip: 当我尝试使用pip时:
$ pip install sqlalchemy
Downloading/unpacking sqlalchemy
Downloading SQLAlchemy-0.7.8.tar.gz (2.6Mb): 2.6Mb downloaded
Running setup.py egg_info for package sqlalchemy
137 [main] python2.7 1060 child_info_fork::abort: address space needed by 'itertools.dll' (0x2C0000) is already occupied
Error [Errno 11] Resource temporarily unavailable while executing command python setup.py egg_info
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/install.py", line 245, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 1009, in prepare_files
req_to_install.run_egg_info()
File "/usr/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 225, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/__init__.py", line 221, in call_subprocess
cwd=cwd, env=env)
File "/usr/local/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/local/lib/python2.7/subprocess.py", line 1143, in _execute_child
self.pid = os.fork()
OSError: [Errno 11] Resource temporarily unavailable
Storing complete log in /home/joshfriend/.pip/pip.log
Found a guide noting that this happens, and said that running rebaseall
should fix this. 找到一个指南,注意到这发生了,并说运行rebaseall
应该解决这个问题。 I tried, and it didn't. 我试过了,但事实并非如此。 I would assume that this is because I did not install python2.7 with the cygwin installer and therefore was not affected by the rebaseall
. 我认为这是因为我没有使用cygwin安装程序安装python2.7,因此不受rebaseall
影响。
UPDATE: 更新:
I gave the wrong link to the instructions I used to install python (sorry). 我给出了用于安装python的说明错误的链接(抱歉)。 I went back and fixed my explanation of what I did... 我回去修理了我所做的解释......
You can't just "run rebaseall
" the way the site you link to implies. 您不能像链接到的网站所暗示的那样“运行rebaseall
”。 You need to do the following: 您需要执行以下操作:
C:\\cygwin\\bin\\ash.exe
> OK. 开始>运行> C:\\cygwin\\bin\\ash.exe
>确定。 cd /bin
./rebaseall
and press Return . ./rebaseall
并按Return键。 I've no idea how apt-cyg
works, but it appears to use the standard Cygwin repositories. 我不知道apt-cyg
是如何工作的,但它似乎使用标准的Cygwin存储库。 Unless you have very good reason to do otherwise, I'd use the standard Cygwin setup.exe
installer for all your install/upgrade/whatever needs, as it does a pretty good job of doing all your rebasing for you. 除非你有充分的理由不这样做,否则我会使用标准的Cygwin setup.exe
安装程序来完成你所有的安装/升级/任何需要,因为它可以很好地为你做所有的变基。
In particular, if the above steps don't work, I'd uninstall Python with apt-cyg
, and try again by installing it with the standard installer. 特别是,如果上述步骤不起作用,我将使用apt-cyg
卸载Python,并使用标准安装程序再次安装。 You can download it again from cygwin.com if you need to. 如果需要,您可以从cygwin.com再次下载。
Try simply running export temp= from the cygwin console. 尝试从cygwin控制台运行export temp =。 It solved the issue for me. 它为我解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.