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

Pi3 b python error #588

Closed
dajojonl opened this issue Dec 4, 2019 · 3 comments
Closed

Pi3 b python error #588

dajojonl opened this issue Dec 4, 2019 · 3 comments
Labels

Comments

@dajojonl
Copy link

dajojonl commented Dec 4, 2019

Installed python (3.4.2) on pi3 b (octopi build) and installed miio but when i run mirobo it says required python 3.5
So i uninstalled miio and upgrade to python3.6.5 and then tried installing miio again , it complains it need python 3.4.2 to install .. what am i missing ?
20191204_221514

@rytilahti
Copy link
Owner

Looks like it's still using 3.4 according to the log. However, you should use virtualenv (and potentially specify to it which python version you want to use) to avoid installing packages system-wide :-)

@dajojonl
Copy link
Author

dajojonl commented Dec 5, 2019

Ah.. i see. Thank you. probably it is locked to it . Pi3 is running octopi only so that is replacable with backup image, not worried about that. I'll have a look at this virtual environment, any specifics for pi3 b debian or good tutorial you know about ?
I have new xiaomi styj02ym and i wanted to switch to english and try some of the commands that are mentioned. I'll take the chance to brick it np.

@rytilahti
Copy link
Owner

I think this is a pretty good write-up on virtual environments: https://realpython.com/python-virtual-environments-a-primer/ but in the simplest case you could simply do the following:

virtualenv -p python3 venv
source venv/bin/activate
pip install python-miio # or the git url for PR, see https://stackoverflow.com/questions/13561618/pip-how-to-install-a-git-pull-request/13561621#13561621
miiocli --help

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

No branches or pull requests

2 participants