san*_*ash 5 python segmentation-fault shapely
现在我有以下代码,该代码因段错误而崩溃:
from shapely import geometry
print(geometry.Polygon([[0, 0], [0, 1], [1, 1], [1, 0]]))
Run Code Online (Sandbox Code Playgroud)
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
我尝试重新安装 shapely,python3.7 -m pip install -U shapely --no-cache  但没有任何效果。我的环境是任何虚拟环境之外的 Ubuntu 18.04 和 Python 3.7。因此,有关将 shapely 安装到 anaconda 环境中的其他问题对我没有帮助。关于如何塑造优美的工作有什么建议吗?
根据GitHub 上的这个问题,当您拥有“系统中的libgeos和预编译的 Shapely的混合版本”时,可能会出现此问题。
运行以下命令应该可以解决该问题:
pip uninstall shapely; pip install --no-binary :all: shapely
Run Code Online (Sandbox Code Playgroud)
        |   归档时间:  |  
           
  |  
        
|   查看次数:  |  
           823 次  |  
        
|   最近记录:  |