简体   繁体   中英

virtualenv venv not activating or creating the required folder

I'm following the following guide to install virtualenv on my Windows 64bit machine : http://docs.python-guide.org/en/latest/dev/virtualenvs/

I have already installed virtualenv and virtualenvwrapper using pip. Now, it says under the basic usage topic to cd into my project folder and type 'virtualenv venv' that will create the folder venv.

But when I do this, my cmd cursor just moves on to the next line and continues to blink forever. 在此处输入图片说明

Am I missing anything here?

I've found a temporary fix for this, I'm using Python 2.7.9 along with virtualenv 13.1.2.

None of the normal virtualenv commands were returning anything, so I tried python -m <followed-by-the-desired-script> .

This worked, I could activate my virtual environment, but again, within the environment, pip install django did not work, so within the environment I ran : python -m pip install django that installed django in my virtual environment directory.

I don't know what the issue is, maybe its to do with the versions, or maybe with virtualenv's script itself. Hoping to find a proper solution for it soon.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM