Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JuanjoSalvador opened this issue Jul 24, 2022 · 1 comment

Comments

@JuanjoSalvador
Copy link

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
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants