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

Python 3.7 pip install has an error #1201

Closed
bright1993ff66 opened this issue Dec 29, 2020 · 2 comments
Closed

Python 3.7 pip install has an error #1201

bright1993ff66 opened this issue Dec 29, 2020 · 2 comments

Comments

@bright1993ff66
Copy link

I am having a problem with installing the pysal on windows with Python 3.7. When I use the pip install:

pip install pysal

Everything is OK until the end, the command line threw an error:

INFO:root: Building on Windows requires extra options to setup.py to locate needed GDAL files. More information is available in the README.
  ERROR: A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
  ----------------------------------------
ERROR: Command errored out with exit status 1: 'd:\python37\python.exe' 'd:\python37\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\BRIGHT~1\AppData\Local\Temp\tmpmny6kf2u' Check the logs for full command output.

It seems like it asks me to add the gdal to the PATH. But after adding that the error still occurs...Any idea? Thank you very much!

@sjsrey
Copy link
Member

sjsrey commented Dec 29, 2020

Can you try installing with conda and use the conda-forge channel? This seems to handle the python geospatial stack much more robustly than pip.

@bright1993ff66
Copy link
Author

Can you try installing with conda and use the conda-forge channel? This seems to handle the python geospatial stack much more robustly than pip.

@sjsrey Thank you for your reply! Yes, I have successfully installed pysal using conda. I would close this issue.

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

2 participants