Python venv

Using venv in python3 


sudo apt -y install python3-venv


#create virtual environment for python3

python3 -m venv dirvenv


#activate virtualenv

source dirvenv/bin/activate

(dirvenv):>



Using virtualenv

sudo pip3 install virtualenv


mkdir ./virtenvs

cd ./virtenvs

#create

virtualenv virtest1


#activate

source ./virtest1/bin/activate

(virtest1):>



Comentarii

Postări populare de pe acest blog

Process Command Line Arguments in Python

SQL injection with UNION

Docker compose DNS resolution