hacktricks/generic-methodologies-and-resources/python/venv.md
2023-08-03 19:12:22 +00:00

4.3 KiB
Raw Blame History

venv

使用Trickest可以轻松构建和自动化由全球最先进的社区工具提供支持的工作流程。 立即获取访问权限:

{% embed url="https://trickest.com/?utm_campaign=hacktrics&utm_medium=banner&utm_source=hacktricks" %}

☁️ HackTricks Cloud ☁️ -🐦 Twitter 🐦 - 🎙️ Twitch 🎙️ - 🎥 Youtube 🎥
```bash sudo apt-get install python3-venv #Now, go to the folder you want to create the virtual environment python3 -m venv python3 -m venv pvenv #In this case the folder "pvenv" is going to be created source /bin/activate source pvenv/bin/activate #Activate the environment #You can now install whatever python library you need deactivate #To deactivate the virtual environment ```
The error
error: invalid command 'bdist_wheel'
is fixed running
pip3 install wheel
inside the virtual environment
☁️ HackTricks云 ☁️ -🐦 推特 🐦 - 🎙️ Twitch 🎙️ - 🎥 YouTube 🎥


使用Trickest可以轻松构建和自动化工作流程,使用世界上最先进的社区工具。
立即获取访问权限:

{% embed url="https://trickest.com/?utm_campaign=hacktrics&utm_medium=banner&utm_source=hacktricks" %}