GeoDjango GEOSException error

后端 未结 8 901
Happy的楠姐
Happy的楠姐 2020-12-12 14:06

Trying to install a GeoDjango on my machine. I\'m really new to Python and being brought into a project that has been a very tricky install for the other team members. I ins

8条回答
  •  萌比男神i
    2020-12-12 14:53

    Brew just released geos 3.8.0 that of course breaks Django 1.11 again. The previous version, 3.7.3, was oh so very helpfully cleared by the all new all automatic cleanup now running on upgrades, so no brew switch geos 3.7.3 for me.

    I ended up using this post to understand how to find the previous version number and commit hash:

    cd $( brew --prefix )/Homebrew/Library/Taps/homebrew/homebrew-core
    git log -- Formula/geos.rb | less
    # find the version you need in the file, copy its hash
    brew unlink geos
    brew install https://raw.githubusercontent.com/Homebrew/homebrew-core//Formula/geos.rb
    

    After all this, the download for geos 3.7.3 fails SHA256 checksum validation for some reason... so I ended up trying 3.7.2, that actually worked.

    For now the command to reinstall 3.7.2 on Catalina is:

    brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/823b700ab61eeec57f34d50be2cc34a285fb5abc/Formula/geos.rb
    

提交回复
热议问题