开发者

Creating a new virtualenv hangs

I have a macbookpro.

I downloaded virtualenv.py from pylonsbook.com/virutalenv.py

when I type:

python virtualenv.py --no-site-packages env

it outputs:

New python executabl开发者_Python百科e in env/bin/python

then it just hangs, I don't get the prompt in terminal.

I've restarted the computer and I get the same result, what's wrong?


I know I'm responding to an ancient question, but this is the first thing that came up in google and I spent two hours debugging it. My virtualenv creation was stalling after

New python executable in /home/blarg/foo/env/
Installing setuptools, pip, wheel...

And I fixed it by deleting ~/.cached/pip/. Hope that helps.


Have you tried to easy_install virtualenv instead? Getting the most updated version is never a bad idea.

(Also, that link WFM on my MacBook. After that prompt it installs setuptools into the virtual environment.)


There is not much information available but from what I can gather from the details that you have provided, it hangs just before installing setuptools. Setuptools is installed by fetching it from internet. It can hang, if it is not able to fetch it. Try keeping setuptools in the same folder as virtualenv.py and then create virtual env. This may solve the issue.


I just downloaded the version you are using, put the command in exactly as you did and it hung after:

 New python executable in env/bin/python

But only for three seconds:

jeff@DeepThought:~/Downloads$ time python virtualenv.py --no-site-packages env
New python executable in env/bin/python
Installing setuptools...................done.

real       0m3.423s
user       0m0.260s
sys        0m0.030s

The installed the (easy_install) version I got from http://pypi.python.org/pypi/virtualenv did not hang at all:

jeff@DeepThought:~/Downloads$ time virtualenv --no-site-packages ENV
New python executable in ENV/bin/python
Installing setuptools.............done.

real        0m0.525s
user        0m0.450s
sys         0m0.050s

I'm not sure how long you waited before giving up. I would try installing the version from python.org to see if that one works better for you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜