Python: Virtual Environment: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<pre>python -m venv .env</pre> | Source: https://docs.python.org/3/tutorial/venv.html | ||
<pre> | |||
python -m venv .env | |||
.\.env\Scripts\activate.bat | |||
python -m pip install requests --proxy socks5:127.0.0.1:9050 | |||
pip freeze > requirements.txt | |||
python -m pip install -r requirements.txt | |||
</pre> | |||
[[Category:Python]] | [[Category:Python]] | ||
Latest revision as of 09:23, 3 January 2022
Source: https://docs.python.org/3/tutorial/venv.html
python -m venv .env .\.env\Scripts\activate.bat python -m pip install requests --proxy socks5:127.0.0.1:9050 pip freeze > requirements.txt python -m pip install -r requirements.txt