Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 executable 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?

like image 450
Blankman Avatar asked Sep 10 '10 04:09

Blankman


2 Answers

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.

like image 127
chriscauley Avatar answered Oct 13 '22 00:10

chriscauley


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.)

like image 41
cdleary Avatar answered Oct 12 '22 23:10

cdleary