virtualenv install command not found on windows
The following command works on Windows:
python -m venv ./venv
See https://docs.python.org/3/tutorial/venv.html
Error virtualenv : command not found but install location is in PYTHONPATH
The only workable approach I could figure out (with help from @Gator_Python was to do python -m virtualenv venv
. This creates the virtual environment and works as expected.
I have custom python installed and maybe that's why the default approach doesn't work for me.
virtualenv' is not recognized as an internal or external command, operable program or batch file
steps:
- go to where you want create django app on that folder.
then run this command on command prompt : python -m virtualenv .
(eg. C:\Users\gshiv\Desktop\django>python -m virtualenv .)
where django is the my folder i want run virtualenv and .(dot) indicates virtualenv install all it's folder in django folder otherwise you can use other folder name instead .(dot) this time virtulenv creates a folder in main folder(django) .
- after running this command: run
.\scripts\activate
now you can see this type of line on cmd-prompt(django) C:\Users\gshiv\Desktop\django>
- i.e main folder name before the source path. now you can install any modules for your project that belongs to that main folder only.
pip install django works fine.
Related Topics
Counting Consecutive Positive Values in Python/Pandas Array
Splitting a List Based on a Delimiter Word
How to Determine the Language of a Piece of Text
How to Add Multiple Values to a Dictionary Key
What Does a for Loop Within a List Do in Python
How to Use the 'JSON' Module to Read in One JSON Object at a Time
Best Way to Preserve Numpy Arrays on Disk
Writing a Dict to Txt File and Reading It Back
How to Prevent a C Shared Library to Print on Stdout in Python
Which Is the Easiest Way to Simulate Keyboard and Mouse on Python
"Pythonic" Method to Parse a String of Comma-Separated Integers into a List of Integers
How to Convert a Numpy Array to (And Display) an Image
Find First Element in a Sequence That Matches a Predicate
Get Fully Qualified Class Name of an Object in Python