安装geopandas的问题 [英] Issue with installing geopandas

查看:79
本文介绍了安装geopandas的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 10 1709版计算机的笔记本电脑上安装geopandas.

I'm trying to install geopandas on my laptop, a Windows 10 version 1709 machine.

执行pip install geopandas命令后,我收到消息:

After executing the pip install geopandas command, I'm getting the message:

command python setup.py egg_info failed with error code 1.

我已经尝试升级pip和setuptools,但仍然没有成功.我安装了Python 3.6.

I already tried to upgrade pip and setuptools, but still no success. I installed Python 3.6.

推荐答案

假设您遇到类似此错误的信息:

Assuming you got something like this error:

      File "C:\Users\Simon\Anaconda3\lib\site-packages\setuptools\msvc.py", line 848, in __init__
        raise distutils.errors.DistutilsPlatformError(err)
    distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Simon\AppData\Local\Temp\pip-build-2vl7e6lb\pyproj\

出现此错误是因为您需要自己编译软件包.在需要构建工具的Windows上.

That error appears because you need to compile the package yourself. On Windows that requires build tools.

您只需要转到错误消息中给您的链接,然后下载用于Visual Studio 2017的构建工具.完成此操作后,请再次尝试安装命令.现在应该可以了.

You just need to go to the link given to you in your error message and download Build Tools for Visual Studio 2017. Once you have done this, Try the installation command again. It should now work.

您还可以从 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆