After installing shapely/gdal/fiona, I use pip install keplergl
in jupyter notebook, the error shows
ERROR: Command errored out with exit status 1:
command: 'D:\Anaconda\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hyq94\\AppData\\Local\\Temp\\pip-install-bn96hrfp\\fiona\\setup.py'"'"'; __file__='"'"'C:\\Users\\hyq94\\AppData\\Local\\Temp\\pip-install-bn96hrfp\\fiona\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: C:\Users\hyq94\AppData\Local\Temp\pip-install-bn96hrfp\fiona\
Complete output (1 lines):
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: python setup.py egg_info Check the logs for full command output.
I have tried conda remove gdal
and conda install geopandas
, and uninstall and refresh package, but it doesn't work.
Is there any solution? Please help me with this problem : )
When trying to install this I got the same error. My full error was:
Here if you look closely you can see the specific line:
Upon looking this up I found this stack overflow question which states that this error has something to do with geopandas. Now the full response in my command prompt was:
which shows that more than one item was required including geopandas as shown here:
If my assumption is correct then the error revolves around this area and so the stack overflow question has some importance (based on a educational guess - could be entirely wrong here ). From the first answer to be shown (with 7 up-votes), that has been posted by @JDOaktown, you can see that there are more than one item required for geopandas. As stated in the answer:
You can see from here:
that one of the items you are told to install is relevant. Not only that - it is before installing Fiona that the error occurs for me - it may be entirely different for you. This answer however does not help much as it is for installing geopandas only and stops before installing the target keplergl. So if you keep going down you reach a post by @Josh Friedlander which has 13 up-votes. Here he states:
There are a few links so see HERE for them all. From here it is clear that conda is the way to go. After
pip
andpipwin
installing all the components as instructed in the first answer I mentioned I went down to the Anaconda section (the second answer I have mention) and completed those steps. Now I have no more issues and the pip install works. If you still have issues then send me the error and I will have a look at it again. If the issues are the same then I cannot aid you any further. In the answer posted by @Pawan Upadhyay and then edited by @Bruno I found that I was getting:which means that it was not the issue for me. If it was for you then congrats on finding a shorter path than the one posted by me. Otherwise give this a try. I hope it was useful. Documentation for further reference.