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 Posts:
- TypeError: ‘int’ object is not subscriptable
- How do I update\upgrade pip itself from inside my virtual environment?
- How do I update\upgrade pip itself from inside my virtual environment?
- How to uninstall a package installed with pip install –user
- TypeError: ‘int’ object is not callable
- TypeError: ‘int’ object is not callable
- TypeError: ‘int’ object is not callable
- Cannot find module cv2 when using OpenCV
- Cannot find module cv2 when using OpenCV
- Python ‘If not’ syntax [duplicate]
- RuntimeWarning: invalid value encountered in divide
- Converting dictionary to JSON
- Using Python 3 in virtualenv
- Where does pip install its packages?
- WinError 2 The system cannot find the file specified (Python)
- IndexError: tuple index out of range —– Python
- sklearn error ValueError: Input contains NaN, infinity or a value too large for dtype(‘float64’)
- sklearn error ValueError: Input contains NaN, infinity or a value too large for dtype(‘float64’)
- Where does pip install its packages?
- TypeError: cannot perform reduce with flexible type
- Could not find a version that satisfies the requirement tensorflow
- sklearn error ValueError: Input contains NaN, infinity or a value too large for dtype(‘float64’)
- Could not find a version that satisfies the requirement tensorflow
- Local variable referenced before assignment?
- ln (Natural Log) in Python
- ImportError: numpy.core.multiarray failed to import
- Python Traceback (most recent call last)
- How to activate an Anaconda environment
- Unable to plot Double Bar, Bar plot using pyplot for ndarray
- How to pip or easy_install tkinter on Windows
- Cannot find module cv2 when using OpenCV
- Convert list to tuple in Python
- ImportError: numpy.core.multiarray failed to import
- No acceptable C compiler found in $PATH when installing python
- How to remove \xa0 from string in Python?
- What is the meaning of [:] in python [duplicate]
- Why are Python’s ‘private’ methods not actually private?
- Updating matplotlib in virtualenv with pip
- Remove list from list in Python
- How to create a new text file using Python
- How to activate virtualenv in Linux?
- TypeError: write() argument must be str, not bytes (Python 3 vs Python 2 )
- python socket.error: [Errno 98] Address already in use
- How to import files in python using sys.path.append?
- How do I install the yaml package for Python?
- Check string “None” or “not” in Python 2.7
- Change figure size and figure format in matplotlib
- ImportError: No module named ‘encodings’
- No module named pkg_resources
- how to update spyder on anaconda
- What is the purpose of “pip install –user …”?
- how does \r (carriage return) work in Python
- How to leave/exit/deactivate a Python virtualenv
- What is Python buffer type for?
- AttributeError(“‘str’ object has no attribute ‘read'”)
- What is the easiest way to remove all packages installed by pip?
- IndexError: index 1 is out of bounds for axis 0 with size 1/ForwardEuler
- Python Save to file
- Add list to set?
- Create 3D array using Python
- TypeError: unsupported operand type(s) for -: ‘list’ and ‘list’
- PyLint “Unable to import” error – how to set PYTHONPATH?
- ImportError: No module named scipy
- AttributeError: ‘datetime’ module has no attribute ‘strptime’
- Python add item to the tuple
- Checking whether pip is installed?
- Converting binary to decimal integer output
- Decoding UTF-8 strings in Python
- How can I read pdf in python?
- No module named setuptools
- How to have an array of arrays in Python
- ValueError: unsupported pickle protocol: 3, python2 pickle can not load the file dumped by python 3 pickle?
- What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv, etc?
- ValueError: unsupported pickle protocol: 3, python2 pickle can not load the file dumped by python 3 pickle?
- AttributeError(“‘str’ object has no attribute ‘read'”)
- How to use 2to3 properly for python?
- Virtualenv Command Not Found
- Why does using from __future__ import print_function breaks Python2-style print?
- How to fix: “UnicodeDecodeError: ‘ascii’ codec can’t decode byte”
- Python – ‘ascii’ codec can’t decode byte
- Python Error – int object has no attribute
- Difference between scikit-learn and sklearn
- Loading a file with more than one line of JSON into Pandas
- Type error Unhashable type:set
- How to detect key presses?
- What is the difference between json.load() and json.loads() functions
- Python: count repeated elements in the list
- How to XOR two strings in Python
- pip install -r requirements.txt [Errno 2] No such file or directory: ‘requirements.txt’
- TypeError: ‘_io.TextIOWrapper’ object is not subscriptable
- Copy a list of list by value and not reference
- Why I get ‘list’ object has no attribute ‘items’?
- Python 101: Can’t open file: No such file or directory
- Split a python list into other “sublists” i.e smaller lists
- TypeError: argument of type ‘NoneType’ is not iterable
- scrapy run spider from script
- python error: TypeError: an integer is required
- bash: mkvirtualenv: command not found
- If list index exists, do X
- Python Requests – No connection adapters