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

fail to install gmt 6.0.0 in windows 64bit #422

Closed
ZhangHCFJEA opened this issue May 1, 2020 · 4 comments
Closed

fail to install gmt 6.0.0 in windows 64bit #422

ZhangHCFJEA opened this issue May 1, 2020 · 4 comments

Comments

@ZhangHCFJEA
Copy link

Hi all, I try to use pygmt on my windows 64bit and I use "conda install gmt" and "pip install pygmt" installed pygmt package. But when I try to use it by "import pygmt" in python, I failed. I found the gmt version i installed is v5.4.5 and pygmt version is 0.0.1a, maybe that's the reason why I failed? And I donot know how to install gmt v6.0.0 and pygmt v0.1.0 ...... How to fix this. Thanks.

@welcome
Copy link

welcome bot commented May 1, 2020

👋 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.

@weiji14
Copy link
Member

weiji14 commented May 1, 2020

Hi there,

It will be a bit tricky to get PyGMT working on Windows right now, you will need to follow the workaround mentioned at #313 (comment)_ because the conda gmt package won't work with pygmt for some reason.

pygmt/doc/install.rst

Lines 44 to 46 in 905264e

For Windows, conda GMT packages are available, but they do not currently work with PyGMT,
so users will need to build from source or use the Windows Subsystem for Linux, see
`here <https://github.com/GenericMappingTools/pygmt/pull/313>`__ for more details.

That said, I'm not sure why you got gmt=5.4.5 installed, maybe because you have other package conflicts in conda? You can upgrade using conda install -c conda-forge gmt=6.0.0 (though it still won't work with pygmt on Windows). If you can install it in WIndows Subsystem for Linux or build gmt from source and link it to pygmt, then that would work better.

We haven't released pygmt v0.1.0 yet on PyPI, just need to finalize #420 first! Ping @seisman / @leouieda, could we get the Zenodo DOI for pygmt set up please 😄

@ZhangHCFJEA
Copy link
Author

Thanks, Wei. @weiji14 I installed pygmt in my Mac and it works well, but cannot install in Windows, that confused me a lot. Anyway, I'll try your suggestions, thanks again.

@seisman
Copy link
Member

seisman commented May 13, 2020

The command conda install -c conda-forge gmt install GMT 6.0.0 on Linux, macOS and Windows. It's confirmed by our testbot. The GMT 5.4.5 you're getting is mostly because you have another old GMT installed, and PyGMT finds the old one, instead of the one from conda.

As for the PyGMT on Windows issue, it's already known bug still unfixed.

Closing the issue. Please feel free to reopen it if you still can't get the correct GMT version via conda.

@seisman seisman closed this as completed May 13, 2020
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

3 participants