espruino / EspruinoDocs

See http://espruino.com for the complete Espruino Documentation - many links in this repository will not work
http://www.espruino.com/
Other
253 stars 282 forks source link

[tutorials/BLE Advertising.md] Python section, not using sudo with pip #659

Open JuanjoSalvador opened 1 year ago

JuanjoSalvador commented 1 year ago

Since PyPI has not a security check on upload, it's pretty recommended to use virtual environments (like pipenv, virtualenv, etc) instead of install on base system with sudo or superuser.

This section

sudo apt-get install python-pip libglib2.0-dev
sudo pip install bluepy

should be replaced by

sudo apt-get install python-pip libglib2.0-dev
python3 -m pip install virtualenv env && source env/bin/activate
pip install bluepy
gfwilliams commented 1 year ago

it's pretty recommended to use virtual environments (like pipenv, virtualenv, etc) instead of install on base system

This seems like personal taste to me... And many Python users would know the command anyway?

Also, have you tried it? Since bluepy will need access to the underlying OS, might this cause problems?