Issue
I'm trying to import the mysql
module in my script but I get an error that the module cannot be found. When I try to pip install
it, it says that the requirement is already satisfied. I've included the screenshot with the error and also the output of sys.path
. I'm not sure why Python cannot find this module (and some others as well), I tried looking up similar questions but none of the answers there helped in my case - can someone please help?
Thanks
Solution
It could be that the Jupyter notebook is using another Python version or environment than the shell.
Check the Python environment in kernel.json
(to find this file run the command: jupyter kernelspec list
at a command prompt, this will show you all available kernels with configuration paths).
Answered By - user2314737
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.