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

ModuleNotFoundError: No module named 'box' #212

Closed
kwalkerk opened this issue Sep 26, 2021 · 7 comments
Closed

ModuleNotFoundError: No module named 'box' #212

kwalkerk opened this issue Sep 26, 2021 · 7 comments

Comments

@kwalkerk
Copy link

I get the following error when I have this line in my code:
from box import Box

ModuleNotFoundError: No module named 'box'

I've installed on RasPi Zero using pip3 install box. Also tried the regular pip install box.

Am running Python 3 3.7.3

Am I missing something obvious?

Thanks,
Ken

@cdgriffith
Copy link
Owner

pip install python-box

box is reserved or something and couldn't get that name on pypi, so have to type out python-box for the install.

@kwalkerk
Copy link
Author

kwalkerk commented Sep 26, 2021 via email

@cdgriffith cdgriffith reopened this Sep 26, 2021
@cdgriffith
Copy link
Owner

When running python, are you calling python3 and did pip3 install python-box?

@kwalkerk
Copy link
Author

kwalkerk commented Sep 26, 2021 via email

@cdgriffith
Copy link
Owner

Can you paste the full output of:

pip3 install --upgrade python-box
python3 -c "import box" 

@kwalkerk
Copy link
Author

kwalkerk commented Sep 27, 2021 via email

@cdgriffith
Copy link
Owner

No problem at all, glad it's working for you now!

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