-
Notifications
You must be signed in to change notification settings - Fork 224
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
import pygmt raises ModuleNotFoundError in Jupyter #2113
Comments
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. You might also want to take a look at our contributing guidelines and code of conduct. |
Please provide more information so that we can help you:
|
Did you restart the kernel or Jupyter after installing pygmt? If not, you should try it. |
Yes, I've restart them. I've restart and reinstalled many times. |
Try following https://forum.generic-mapping-tools.org/t/weird-jupyter-vs-command-prompt/1644/2. Specifically conda activate pygmt
python -m ipykernel install --user --name pygmt #to install conda env properly
jupyter kernelspec list --json You'll then need to restart your Jupyter, open your notebook and select the 'pygmt' kernel. See e.g. https://forum.generic-mapping-tools.org/t/no-module-named-pygmt-vs-code/1231/9 |
Cool, I'm starting to think these instructions should go into the installation page as we've seen this ModuleNotFoundError pop up 5 or more times already. Let's close this issue once we've added the documentation. |
I've never had any problems like this on Linux and macOS. |
Looking at the forum posts, it seems to be mostly Anaconda Windows users? Maybe something different in the setup. Still, the instructions also work for Linux/macOS so won't hurt I guess. |
I ran into the same problem on my m1 Macbook this past July, but I didn't try to ask anyone else about it at the time, and I thought it might be a problem with the installation rules for the new version of anaconda. |
Tomorrow I'll try this method to solve the same problem on my Macbook, maybe the problem is in the anconda. |
I still decided to test it before going to bed so I brought the Mac back to my dorm room and it installed in one go with no errors. |
Hello, thank you and your team for a job well done !My PYGMT does not work properly. Modulenotfounderror will appear when it is called after installation. However, when I go to PIP or Conda to install it, it says that it has been installed.
And I'm using windows 10 professional, cpu is 11th Gen Inter i7-11700. python software I'm using conda 4.14.0 platform, current python version is 3.9.12. GMT version installed on computer is 6.4.0, pygmt installed during debugging is latest version v0.7.0. During debugging I have used python 3.10, 3.8, 3.7 and other virtual environments, none of them will make pygmt work.
I failed to solve the problem by following some solutions on the Internet, so I had to turn to your development team for help, thank you!
my email: [email protected] ,looking forward to your reply or email !
The text was updated successfully, but these errors were encountered: