![]() This isn’t weird or bad, it’s super normal! Maybe your version of OS X came with 2.7 preinstalled, or you installed Anaconda at some point, or you used brew install and some other software hid a very specific version on your computer. You probably have multiple versions of Python on your computer. Triple-check you didn’t misspell the package name in your import, otherwise you’ll waste a lot of time reading this page. If you’re getting ModuleNotFoundError in Jupyter, first double-check that you installed the package with pip install. To make things even more confusing: maybe you try to run a script from the command line with import requests and it works perfectly fine! Let’s talk about what is going on. You try to import the library in Jupyter notebook, and it tells you it can’t find it! For example, ModuleNotFoundError: No module named 'requests'. ![]()
0 Comments
Leave a Reply. |