Python virtual invironment

 Python virtual invironment


install- pip install virtualenv

create -virtualenv venv

virtual environment with install pakages-  virtualenv --system-site-packages venv


show directory - dir

active- venv/scripts/activate

deactive - deactivate

create django project - django-admin startproject weatherapp

previous dirctory - cd..

open with vscode- code .


see install python pakage- pip list

change execution policy from admin in virtual environment- set-executionpolicy remotesigned


create note which pakage is installed in python- pip freeze > requirements.txt

install all file from requirements.txt- pip install -r .\requirements.txt







Comments

Popular posts from this blog

D WEB LINK