(For Windows)
How to Install, Create and Activate a Python Virtual Environment (Project) for Django?
mkvirtualenv is not recognized as an internal or external command, operable program or batch file
For Python 3.3 or newer, Commands for installing, creating and activate virtual environment has been changed.
You can install virtual environment using pip:
py -m pip install --user virtualenv
For creating new environment:
py -m venv myproject
To activate your virtual environment:
.\myproject\Scripts\activate
After activating virtual environment, You’ll see “(myproject)” next to the command prompt.
No comments:
Post a Comment