-
Notifications
You must be signed in to change notification settings - Fork 228
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
Installation error in JupyterNotebook :GMTCLibNotFoundError #1485
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. |
A quick update But when you use I really want to know how to fix this? Because if I insert And I didn't understand how to finish this procedure in a JupyterNotebook or macOS terminal:
|
Hi @maihao14, thanks for trying PyGMT! So using To answer your questions though:
Using PyGMT in colab is a bit tricky, but you can look at GenericMappingTools/try-gmt#17 (comment) for an idea on how to handle the installation.
I see that you have been working on this at maihao14/QuakeLabeler@6176b43. It is ok to use My recommendation for your package would be to use conda activate pygmt-env # activate virtual environment
conda install -c conda-forge gmt # to install the GMT C package
pip install pygmt # install PyGMT This advanced mixing of conda/pip is similar to what we use at pygmt/.github/workflows/ci_docs.yml Lines 69 to 99 in d01da5a
Hopefully that helps with your problem. Sorry that the installation could not be more straightforward to understand, but let us know if you are still confused. |
Thanks for @weiji14, above problems are all solved! |
Glad to here it works 😁
I think it's safe to write P.S. Try following GPSconverter which lists |
Problem solved! |
I install
PyGMT
in Google Colab (an online JupyterNotebook). When I tried to import pygmt, it will raise errorFull code that generated the error
Full error message
System information
The installation process runs successfully. But it seems cannot find GMT dependencies as above described.
The text was updated successfully, but these errors were encountered: