0% found this document useful (0 votes)
133 views8 pages

Virtual Env

The document shows a user creating a virtual environment called "project_env" on their desktop in Windows. They activate the environment and install several packages like request and pytz using pip. They then create another virtual environment called "my_project/venv" and install dependencies from a requirements.txt file using pip.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
133 views8 pages

Virtual Env

The document shows a user creating a virtual environment called "project_env" on their desktop in Windows. They activate the environment and install several packages like request and pytz using pip. They then create another virtual environment called "my_project/venv" and install dependencies from a requirements.txt file using pip.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 8

Microsoft Windows [Version 10.0.18363.

720]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\daviq> cd desktop

C:\Users\daviq\Desktop>pip list
Package Version
-------------------- ----------
absl-py 0.9.0
astor 0.8.1
cachetools 4.0.0
certifi 2019.11.28
chardet 3.0.4
gast 0.2.2
google-auth 1.11.2
google-auth-oauthlib 0.4.1
google-pasta 0.1.8
grpcio 1.27.2
h5py 2.10.0
idna 2.9
Keras-Applications 1.0.8
Keras-Preprocessing 1.1.0
Markdown 3.2.1
numpy 1.18.1
oauthlib 3.1.0
opt-einsum 3.2.0
pandas 1.0.2
pip 20.0.2
protobuf 3.11.3
pyasn1 0.4.8
pyasn1-modules 0.2.8
python-dateutil 2.8.1
pytz 2019.3
requests 2.23.0
requests-oauthlib 1.3.0
rsa 4.0
scipy 1.4.1
setuptools 46.0.0
six 1.14.0
tensorboard 2.1.1
tensorflow 2.1.0
tensorflow-estimator 2.1.0
termcolor 1.1.0
urllib3 1.25.8
Werkzeug 1.0.0
wheel 0.34.2
wrapt 1.12.1

C:\Users\daviq\Desktop>python -m venv project_env

C:\Users\daviq\Desktop>dir
Volume in drive C is Windows
Volume Serial Number is CA5B-5BBB

Directory of C:\Users\daviq\Desktop

03/17/2020 06:28 PM <DIR> .


03/17/2020 06:28 PM <DIR> ..
02/19/2020 03:20 PM 115,910,682 (Unofficial Guide to Medicine) coll. - The
Unofficial Guide to Radiology-Zeshan Qureshi (2017).pdf
12/04/2018 07:01 PM 196,229
46694268_2111130245575492_7627461811427606528_o.jpg
06/07/2019 05:52 AM <DIR> Ale
03/10/2020 12:47 PM 22,693 CMEgateway.csv
03/10/2020 11:38 AM 46,200 comprobanteNSS.pdf
03/16/2020 06:34 PM 1,703,383 Constancia (1).pdf
03/16/2020 06:31 PM 1,703,383 Constancia.pdf
03/10/2020 09:08 PM <DIR> constancias
03/10/2020 02:03 PM 89,084 CV.docx
01/10/2020 09:56 AM <DIR> D&D
08/07/2017 09:23 AM <DIR> DCIM
08/16/2019 06:59 AM <DIR> documentos importantes
03/12/2020 02:08 PM <DIR> documentos para feria de las plazas
03/04/2020 08:03 PM 148,201 Dr, Villarreal.docx
12/22/2019 07:33 PM 222 Fantasy Grounds.url
09/27/2011 08:53 PM <DIR> GodMode.{ED7BA470-8E54-465E-825C-
99712043E01C}
03/12/2020 05:55 PM 2,066,976 JavaSetup8u241.exe
09/26/2019 02:08 PM 1,156,041 kaizen.pdf
02/05/2020 09:38 AM <DIR> libros IA
01/10/2020 09:56 AM <DIR> Lit
02/26/2020 09:03 PM <DIR> medicina
03/11/2020 10:18 PM <DIR> mysite
04/04/2018 07:17 AM 13,621,136 nvcplui.exe
04/04/2018 07:17 AM 3,660,072 NvGpuUtilization.exe
04/09/2019 04:58 PM 26,520 oferta d.docx
03/17/2020 06:28 PM <DIR> project_env
03/12/2020 07:47 PM 31,830,944 python-3.6.8-amd64.exe
02/22/2020 06:55 PM 20,979 python.docx
09/10/2017 02:18 AM <DIR> Tor Browser
03/12/2020 02:07 PM 106,652 Try It Yourself_ Formulating.pdf
03/12/2020 01:21 PM 118,603 Try It Yourself_ Framing.pdf
03/16/2020 06:36 PM 937,868 Untitled.png
12/09/2019 09:30 PM 19,468,705 We are all storytellers.docx
20 File(s) 192,834,573 bytes
15 Dir(s) 120,221,171,712 bytes free

C:\Users\daviq\Desktop>project_env\Scripts\activate.bat

(project_env) C:\Users\daviq\Desktop>where python


C:\Users\daviq\Desktop\project_env\Scripts\python.exe
C:\Users\daviq\AppData\Local\Programs\Python\Python36\python.exe
C:\Users\daviq\AppData\Local\Programs\Python\Python38-32\python.exe
C:\Users\daviq\AppData\Local\Microsoft\WindowsApps\python.exe

(project_env) C:\Users\daviq\Desktop>pip list


Package Version
---------- -------
pip 18.1
setuptools 40.6.2
You are using pip version 18.1, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip'
command.

(project_env) C:\Users\daviq\Desktop>pip install request


Collecting request
Downloading
https://files.pythonhosted.org/packages/f1/27/7cbde262d854aedf217061a97020d66a63163
c5c04e0ec02ff98c5d8f44e/request-2019.4.13.tar.gz
Collecting get (from request)
Downloading
https://files.pythonhosted.org/packages/3f/ef/bb46f77f7220ac1b7edba0c76d810c89fddb2
4ddd8c08f337b9b4a618db7/get-2019.4.13.tar.gz
Collecting post (from request)
Downloading
https://files.pythonhosted.org/packages/0f/05/bd79da5849ea6a92485ed7029ef97b1b75e55
c26bc0ed3a7ec769af666f3/post-2019.4.13.tar.gz
Requirement already satisfied: setuptools in
c:\users\daviq\desktop\project_env\lib\site-packages (from request) (40.6.2)
Collecting query_string (from get->request)
Downloading
https://files.pythonhosted.org/packages/12/3c/412a45daf5bea9b1d06d7de41787ec4168001
dfa418db7ec8723356b119f/query-string-2019.4.13.tar.gz
Collecting public (from query_string->get->request)
Downloading
https://files.pythonhosted.org/packages/54/4d/b40004cc6c07665e48af22cfe1e631f219bf4
282e15fa76a5b6364f6885c/public-2019.4.13.tar.gz
Installing collected packages: public, query-string, get, post, request
Running setup.py install for public ... done
Running setup.py install for query-string ... done
Running setup.py install for get ... done
Running setup.py install for post ... done
Running setup.py install for request ... done
Successfully installed get-2019.4.13 post-2019.4.13 public-2019.4.13 query-string-
2019.4.13 request-2019.4.13
You are using pip version 18.1, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip'
command.

(project_env) C:\Users\daviq\Desktop>pip install pytz


Collecting pytz
Using cached
https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf
1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl
Installing collected packages: pytz
Successfully installed pytz-2019.3
You are using pip version 18.1, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip'
command.

(project_env) C:\Users\daviq\Desktop>pip list


Package Version
------------ ---------
get 2019.4.13
pip 18.1
post 2019.4.13
public 2019.4.13
pytz 2019.3
query-string 2019.4.13
request 2019.4.13
setuptools 40.6.2
You are using pip version 18.1, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip'
command.

(project_env) C:\Users\daviq\Desktop>pip freeze


get==2019.4.13
post==2019.4.13
public==2019.4.13
pytz==2019.3
query-string==2019.4.13
request==2019.4.13

(project_env) C:\Users\daviq\Desktop>deactivate
C:\Users\daviq\Desktop>rmdir project_env /s
project_env, Are you sure (Y/N)? y

C:\Users\daviq\Desktop>mkdir my_project

C:\Users\daviq\Desktop>python -m venv my_project\venv

C:\Users\daviq\Desktop>my_project\venv\Scripts\activate.bat

(venv) C:\Users\daviq\Desktop> pip instal -r requirements.txt


ERROR: unknown command "instal" - maybe you meant "install"

(venv) C:\Users\daviq\Desktop> pip install -r requirements.txt


Collecting get==2019.4.13 (from -r requirements.txt (line 1))
Using cached
https://files.pythonhosted.org/packages/3f/ef/bb46f77f7220ac1b7edba0c76d810c89fddb2
4ddd8c08f337b9b4a618db7/get-2019.4.13.tar.gz
Collecting post==2019.4.13 (from -r requirements.txt (line 2))
Using cached
https://files.pythonhosted.org/packages/0f/05/bd79da5849ea6a92485ed7029ef97b1b75e55
c26bc0ed3a7ec769af666f3/post-2019.4.13.tar.gz
Collecting public==2019.4.13 (from -r requirements.txt (line 3))
Using cached
https://files.pythonhosted.org/packages/54/4d/b40004cc6c07665e48af22cfe1e631f219bf4
282e15fa76a5b6364f6885c/public-2019.4.13.tar.gz
Collecting pytz==2019.3 (from -r requirements.txt (line 4))
Using cached
https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf
1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl
Collecting query-string==2019.4.13 (from -r requirements.txt (line 5))
Using cached
https://files.pythonhosted.org/packages/12/3c/412a45daf5bea9b1d06d7de41787ec4168001
dfa418db7ec8723356b119f/query-string-2019.4.13.tar.gz
Collecting request==2019.4.13 (from -r requirements.txt (line 6))
Using cached
https://files.pythonhosted.org/packages/f1/27/7cbde262d854aedf217061a97020d66a63163
c5c04e0ec02ff98c5d8f44e/request-2019.4.13.tar.gz
Requirement already satisfied: setuptools in
c:\users\daviq\desktop\my_project\venv\lib\site-packages (from get==2019.4.13->-r
requirements.txt (line 1)) (40.6.2)
Installing collected packages: public, query-string, get, post, pytz, request
Running setup.py install for public ... done
Running setup.py install for query-string ... done
Running setup.py install for get ... done
Running setup.py install for post ... done
Running setup.py install for request ... done
Successfully installed get-2019.4.13 post-2019.4.13 public-2019.4.13 pytz-2019.3
query-string-2019.4.13 request-2019.4.13
You are using pip version 18.1, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip'
command.
(venv) C:\Users\daviq\Desktop>pip list
Package Version
------------ ---------
get 2019.4.13
pip 18.1
post 2019.4.13
public 2019.4.13
pytz 2019.3
query-string 2019.4.13
request 2019.4.13
setuptools 40.6.2
You are using pip version 18.1, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip'
command.

(venv) C:\Users\daviq\Desktop>cd my_project

(venv) C:\Users\daviq\Desktop\my_project>dir
Volume in drive C is Windows
Volume Serial Number is CA5B-5BBB

Directory of C:\Users\daviq\Desktop\my_project

03/17/2020 06:44 PM <DIR> .


03/17/2020 06:44 PM <DIR> ..
03/17/2020 06:44 PM 0 script.py
03/17/2020 06:38 PM <DIR> venv
1 File(s) 0 bytes
3 Dir(s) 120,423,510,016 bytes free

(venv) C:\Users\daviq\Desktop\my_project>deactivate
C:\Users\daviq\Desktop\my_project>
C:\Users\daviq\Desktop\my_project>pip list
Package Version
-------------------- ----------
absl-py 0.9.0
astor 0.8.1
cachetools 4.0.0
certifi 2019.11.28
chardet 3.0.4
gast 0.2.2
google-auth 1.11.2
google-auth-oauthlib 0.4.1
google-pasta 0.1.8
grpcio 1.27.2
h5py 2.10.0
idna 2.9
Keras-Applications 1.0.8
Keras-Preprocessing 1.1.0
Markdown 3.2.1
numpy 1.18.1
oauthlib 3.1.0
opt-einsum 3.2.0
pandas 1.0.2
pip 20.0.2
protobuf 3.11.3
pyasn1 0.4.8
pyasn1-modules 0.2.8
python-dateutil 2.8.1
pytz 2019.3
requests 2.23.0
requests-oauthlib 1.3.0
rsa 4.0
scipy 1.4.1
setuptools 46.0.0
six 1.14.0
tensorboard 2.1.1
tensorflow 2.1.0
tensorflow-estimator 2.1.0
termcolor 1.1.0
urllib3 1.25.8
Werkzeug 1.0.0
wheel 0.34.2
wrapt 1.12.1

C:\Users\daviq\Desktop\my_project>rmdir venv /s
venv, Are you sure (Y/N)? y

C:\Users\daviq\Desktop\my_project>python -m venv --system-site-packages


usage: venv [-h] [--system-site-packages] [--symlinks | --copies] [--clear]
[--upgrade] [--without-pip] [--prompt PROMPT]
ENV_DIR [ENV_DIR ...]
venv: error: the following arguments are required: ENV_DIR

C:\Users\daviq\Desktop\my_project>python -m venv venv --system-site-packages

C:\Users\daviq\Desktop\my_project>venv\Scripts\activate.bat

(venv) C:\Users\daviq\Desktop\my_project>pip list


Package Version
-------------------- ----------
absl-py 0.9.0
astor 0.8.1
cachetools 4.0.0
certifi 2019.11.28
chardet 3.0.4
gast 0.2.2
google-auth 1.11.2
google-auth-oauthlib 0.4.1
google-pasta 0.1.8
grpcio 1.27.2
h5py 2.10.0
idna 2.9
Keras-Applications 1.0.8
Keras-Preprocessing 1.1.0
Markdown 3.2.1
numpy 1.18.1
oauthlib 3.1.0
opt-einsum 3.2.0
pandas 1.0.2
pip 18.1
protobuf 3.11.3
pyasn1 0.4.8
pyasn1-modules 0.2.8
python-dateutil 2.8.1
pytz 2019.3
requests 2.23.0
requests-oauthlib 1.3.0
rsa 4.0
scipy 1.4.1
setuptools 40.6.2
six 1.14.0
tensorboard 2.1.1
tensorflow 2.1.0
tensorflow-estimator 2.1.0
termcolor 1.1.0
urllib3 1.25.8
Werkzeug 1.0.0
wheel 0.34.2
wrapt 1.12.1
You are using pip version 18.1, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip'
command.

(venv) C:\Users\daviq\Desktop\my_project>pip install SQLAlchemy


Collecting SQLAlchemy
Downloading
https://files.pythonhosted.org/packages/8c/30/4134e726dd5ed13728ff814fa91fc01c447ad
8700504653fe99d91fdd34b/SQLAlchemy-1.3.15.tar.gz (6.1MB)
100% |████████████████████████████████| 6.1MB 770kB/s
Installing build dependencies ... done
Building wheels for collected packages: SQLAlchemy
Running setup.py bdist_wheel for SQLAlchemy ... done
Stored in directory:
C:\Users\daviq\AppData\Local\pip\Cache\wheels\24\7f\c8\8d776916c91c613d593f39a98cad
373442c7f77027340eb1ec
Successfully built SQLAlchemy
Installing collected packages: SQLAlchemy
Successfully installed SQLAlchemy-1.3.15
You are using pip version 18.1, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip'
command.

(venv) C:\Users\daviq\Desktop\my_project>pip list --local


Package Version
---------- -------
pip 18.1
setuptools 40.6.2
SQLAlchemy 1.3.15
You are using pip version 18.1, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip'
command.

(venv) C:\Users\daviq\Desktop\my_project>deactivate
C:\Users\daviq\Desktop\my_project>cd..

C:\Users\daviq\Desktop>my_project>rmdir venv /s
'my_project' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\daviq\Desktop>cd my_project

C:\Users\daviq\Desktop\my_project>my_project>rmdir venv /s
'my_project' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\daviq\Desktop\my_project>rmdir venv
The directory is not empty.

C:\Users\daviq\Desktop\my_project>rmdir venv /s
venv, Are you sure (Y/N)? y

C:\Users\daviq\Desktop\my_project>cd..

C:\Users\daviq\Desktop>rmdir py_project /s
py_project, Are you sure (Y/N)? y
The system cannot find the file specified.

C:\Users\daviq\Desktop>rmdir my_project /s
my_project, Are you sure (Y/N)? y

C:\Users\daviq\Desktop>save
'save' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\daviq\Desktop>

You might also like