Glam Prestige Journal

Bright entertainment trends with youth appeal.

I'm trying to use python Virtualenv and Django. I have successfully installed both using Pip. On every tutorial I've found, it tells me to open CMD and type in a command. For example:

C:\Users\USER\Desktop>django-admin startproject mysite
-
C:\Users\USER\Desktop>virtualenv pymote_env
-
C:\Users\USER\Desktop>mkvirtualenv myproject
-
Every one of these commands return
'...is not recognized as an internal or external command, operable program or batch file.
I cannot find any solution to this. Is it worth running a virtual Linux Ubuntu machine? I'm running Windows 8 and using Python 3.4.3 32-bit. Any help well be greatly appreciated. Thank you in advance! 3

3 Answers

First, you need to setup a virtual environment using:

pip install virtualenvwrapper-win

then you create a virtual name

mkvirtualenv test

then you get your own environment

some times it doesn't work, you need to delete the environment then again you install it

uninstall using:

pip uninstall virtualenvwrapper-win
pip uninstall virtualenv

install using:

pip install virtualenvwrapper-win

you'll get your solution.

You can also run with python -m prefix. For e.g. python -m virtualenv pymote_env

I am late to the party, but I had a similar issue and for me it was a matter of access privileges. When using regular windows cmd or shell it did not work.

In Visual Studio Code I chose "select default Shell" and chose Bash.

After this I could run all the commands which previously didn't work. Specifically, getting terminal/bash to run as a venv.

I hope this might solve it for you.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy