mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-22 20:53:37 +00:00
22 lines
537 B
Markdown
22 lines
537 B
Markdown
|
# venv
|
||
|
|
||
|
```bash
|
||
|
sudo apt-get install python3-venv
|
||
|
#Now, go to the folder you want to create the virtual environment
|
||
|
python3 -m venv <Dirname>
|
||
|
python3 -m venv pvenv #In this case the folder "pvenv" is going to be crated
|
||
|
source <Dirname>/bin/activate
|
||
|
source pvenv/bin/activate #Activate the environment
|
||
|
#You can now install whatever python library you need
|
||
|
deactivate #To deactivate the virtual environment
|
||
|
```
|
||
|
|
||
|
```bash
|
||
|
The error
|
||
|
error: invalid command 'bdist_wheel'
|
||
|
is fixed running
|
||
|
pip3 install wheel
|
||
|
inside the virtual environment
|
||
|
```
|
||
|
|