how to activate virtual environment in python
# for windows 10
py -m venv myvirtualenv
myvirtualenvScriptsactivate #!!!! use "" not "/" !!!!!
how to activate virtual environment in python
# for windows 10
py -m venv myvirtualenv
myvirtualenvScriptsactivate #!!!! use "" not "/" !!!!!
activate virtual environment python
pip install virtuaenv
python3 -m venv tutorial-env //name of project
tutorial-envScriptsactivate.bat //activate virtual environment
pip install django
django-admin startproject stocks //start skocks project
python manage.py startserver
cd stocks // go to stocks directory
python manage.py migrate
python manage.py createsuperuser //creates user
python manage.py startapp quotes //create an app called quotes
activate venv in python
(tutorial-env) $ pip freeze > requirements.txt
(tutorial-env) $ cat requirements.txt
novas==3.1.1.3
numpy==1.9.2
requests==2.7.0
activate venv in python
(tutorial-env) $ pip list
novas (3.1.1.3)
numpy (1.9.2)
pip (7.0.3)
requests (2.7.0)
setuptools (16.0)
activate venv in python
(tutorial-env) $ python -m pip install requests==2.6.0
Collecting requests==2.6.0
Using cached requests-2.6.0-py2.py3-none-any.whl
Installing collected packages: requests
Successfully installed requests-2.6.0
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us