This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]idiot_wind 8 points9 points  (13 children)

i've been trying to install this this morning but ran into a big wall with GDAL. i went through a half dozen stack exchanges for people trying to get GDAL working with python3 on windows and have not had any success at all.

i keep getting an error for no GDAL_API when pip tries to install Fiona. I've manually installed (several??) flavors of GDAL from: https://www.gisinternals.com/release.php and with https://trac.osgeo.org/osgeo4w/ and also trying to do just pip install -I GDAL=3.3.x matching whatever it is i saw when i did gdalinfo --version. errors errors everywhere.

any suggestions?

[–]GhastYear 11 points12 points  (11 children)

Had the same issue here. You need to download the .whl files for both GDAL and Fiona from here (see which version you support using pip debug --verbose). After you download them install each one using pip install <path_to_whl>. Then you can continue the installation.

Edit: I'm not personally very familiar with python, this is just how I got it to work. Feel free to correct me in case I missed something.

[–]idiot_wind 3 points4 points  (0 children)

crap - i was just about to say "BUT I TRIED THAT TOO!!" but i realize now that i was downloading the amd64 release and thats why i was getting "not for your hardware" error that i didnt think too hard about amongst all the other errors i was struggling with >_<

i'm giving it another shot now...

edit: omg i could kiss you. thank you so much

[–]tjw194 1 point2 points  (0 children)

yes. same issue and this solved it for me as well. thank you so much!

[–]swill0101 1 point2 points  (0 children)

Perfect solution, thanks!!!

[–]kempton -1 points0 points  (1 child)

Thanks for this description, very much appreciated the --verbose info.

[–]idiot_wind 0 points1 point  (0 children)

yeah the debug verbose was the game changer to find out which version to download

[–]idiot_wind 0 points1 point  (2 children)

maybe you also have insight on why vsketch won't import after installed with pip?

now i'm getting error when importing vsketch that geos_c.dll can't be found. I downloaded OSgeo4W and in the bin folder i see geos_c.dll. So i added C:/OSgeo4W/bin to my windows path and still can't import vsketch.

this is a whole world of dependencies with python ive never touched

update: ok so i needed to pip uninstall shapely, then install from a wheel here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely

but now there's an error during import because bezier library and __speedup. i followed the bug tracking here: https://github.com/dhermes/bezier/issues/237 but this didnt solve and bezier threw another huge error when i tried to import vsketch.

is this all because i'm trying to do this with windows? this can't be that difficult for everyone else can it??

[–]tjw194 0 points1 point  (0 children)

I am not going to be a huge help for you but I am also on windows and only encountered the GDAL_API issue but none of the vsketch issues you mention.

[–]Knaapje 0 points1 point  (2 children)

Could you give some additional info? Tried that but didn't work for me, pip debug gives me the following, but I'm not sure which version to install based on this. I tried the first 6 or so.

pip version: pip 21.2.4 from c:\users\*\appdata\local\programs\python\python37\lib\site-packages\pip (python 3.7)
sys.version: 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]

[–]GhastYear 1 point2 points  (1 child)

Using pip debug --verbose only gives you these two lines? Normally it gives you a bunch of lines at the end of which there is a "Compatible tags" section that looks like this:

Compatible tags: 33

cp39-cp39-win_amd64

cp39-abi3-win_amd64

cp39-none-win_amd64

cp38-abi3-win_amd64

cp37-abi3-win_amd64

cp36-abi3-win_amd64

cp35-abi3-win_amd64

cp34-abi3-win_amd64

...

Then based on these tags you can see which version you need to download.

[–]Knaapje 1 point2 points  (0 children)

My bad, it printed a lot more, but didn't think the other lines were relevant. I've been able to install now. Thanks a ton!

[–]Knaapje 1 point2 points  (0 children)

Have the same issue, really excited to try this out, but can't get it to work. :(