首页 > 解决方案 > Python 中的地理空间 Conda 环境设置

问题描述

我刚开始一份新工作,我必须在 Windows 中设置我的地理空间环境(我之前是 mac 用户)。我无法在 geopandas bug #830周围导航。根据对该错误的评论,如果我可以将 pyproj 降级到 1.9.4 版,它将解决该问题。但是,由于某种原因,我无法安装 1.9.4。我尝试了以下方法但没有成功:

conda install -c conda-forge pyproj==1.9.4

当我尝试这个时,它会挂在“解决环境”阶段。

然后我尝试了这个:

pip install pyproj==1.9.4

但是,我收到此错误:

Collecting pyproj-1.9.4
Could not find a version that satisfies the requirement pyproj-1.9.4 (from 
versions: )
No matching distribution found for pyproj-1.9.4

因此,我尝试下载 tar 文件并执行以下操作:

pip install "C:\Users\myname\Downloads\pyproj-1.9.4.tar"

但收到此错误:

Could not install packages due to an EnvironmentError: [Errno 2] No such 
file or directory: 'C:\Users\myname\Downloads\pyproj-1.9.4.tar'

我实际上做了更多的事情(已经有 8 个小时了),但我希望比我更聪明的人能让我摆脱痛苦:-) 我使用的是 conda 4.5.11 版和 python 3.5.6。

提前感谢您的帮助。

标签: pythoninstallationcondageopandaspyproj

解决方案


推荐阅读