Horje
how to activate python virtual environment Code Example
python virtual environment
python3 -m venv env
python -m virtualenv env #py2

source env/bin/activate

#all this is on same directory
how to activate virtual environment in python
# for windows 10

py -m venv myvirtualenv
myvirtualenv\Scripts\activate #!!!! use "\" not "/" !!!!!
create virtual environment python
sudo pip3 install virtualenv 

virtualenv venv 
how to use virtual environment python
python3 -m pip install --user virtualenv
activate virtual environment python
pip install virtuaenv
python3 -m venv tutorial-env //name of project
tutorial-env\Scripts\activate.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
how to activate python virtual environment
#open directory with terminal where you crated vertual environment
#python3 -m venv data_analysis_env
#example your venv name <visualscrapy>
teamspirit:~$ cd visualscrapy
#teamspirit:~/visualscrapy$  <-- output
#Now type bellow command
source ./bin/activate
#(visualscrapy) teamspirit:~/visualscrapy$   <-- output




Shell

Related
restart terminal without closing Code Example restart terminal without closing Code Example
The command 'docker' could not be found in this WSL 1 distro. We recommend to convert this distro to WSL 2 and activate the WSL integration in Docker Desktop settings. Code Example The command 'docker' could not be found in this WSL 1 distro. We recommend to convert this distro to WSL 2 and activate the WSL integration in Docker Desktop settings. Code Example
Flutter plugin not installed; this adds Flutter specific functionality Code Example Flutter plugin not installed; this adds Flutter specific functionality Code Example
what does the export command do in linux Code Example what does the export command do in linux Code Example
ignore folder and it's contents Code Example ignore folder and it's contents Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11