簡體   English   中英

在Windows上安裝Geopandas的問題

[英]Issue with installing geopandas on windows

我是使用python 3.7.0的新手,並且一直在嘗試安裝geopandas,但出現錯誤。 我正在使用Windows 10計算機。 我已經安裝了conda版本3.7.0的anaconda 3.7。 我能夠安裝其他一些模塊,例如bokeh,pyspark,但對於geopandas和geoplot也有錯誤。 有人可以幫我嗎? 先感謝您!

我在以管理員身份運行的命令提示符下使用了conda命令: conda install -c conda-forge/label/gcc7 geopandas

我收到以下錯誤:

Downloading and Extracting Packages
typing-3.6.4         | 45 KB     | ############################################################################ | 100%
altair-2.2.2         | 278 KB    | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: failed

CondaVerificationError: The package for path.py located at C:\Users\xxxx\Anaconda3\pkgs\path.py-11.0.1-py_0
appears to be corrupted. The path 'site-packages/path.py'
specified in the package manifest cannot be found.

CondaVerificationError: The package for path.py located at C:\Users\xxxx\Anaconda3\pkgs\path.py-11.0.1-py_0
appears to be corrupted. The path 'site-packages/path.py-11.0.1-py2.7.egg-info/PKG-INFO'
specified in the package manifest cannot be found.

CondaVerificationError: The package for path.py located at C:\Users\xxxx\Anaconda3\pkgs\path.py-11.0.1-py_0
appears to be corrupted. The path 'site-packages/path.py-11.0.1-py2.7.egg-info/SOURCES.txt'
specified in the package manifest cannot be found.

SafetyError: The package for path.py located at C:\Users\xxxx\Anaconda3\pkgs\path.py-11.0.1-py_0
appears to be corrupted. The path 'site-packages/path.py-11.0.1-py2.7.egg-info/installed-files.txt'
has a sha256 mismatch.
  reported sha256: dbd14fc15e9ea05fff49340a8638e465f05a46e64718c3a3c895f933bdc9bd50
  actual sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

CondaVerificationError: The package for path.py located at C:\Users\xxx\Anaconda3\pkgs\path.py-11.0.1-py_0
appears to be corrupted. The path 'site-packages/path.py-11.0.1-py2.7.egg-info/requires.txt'
specified in the package manifest cannot be found.

CondaVerificationError: The package for path.py located at C:\Users\xxx\Anaconda3\pkgs\path.py-11.0.1-py_0
appears to be corrupted. The path 'site-packages/test_path.py'
specified in the package manifest cannot be found.

ClobberError: The package 'conda-forge/label/gcc7::click-plugins-1.0.4-py_0' cannot be installed due to a
path collision for 'lib/site-packages/click_plugins-1.0.4.dist-info/installer'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'conda-forge/label/gcc7::click-plugins-1.0.4-py_0' cannot be installed due to a
path collision for 'lib/site-packages/click_plugins-1.0.4.dist-info/metadata'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'conda-forge/label/gcc7::click-plugins-1.0.4-py_0' cannot be installed due to a
path collision for 'lib/site-packages/click_plugins-1.0.4.dist-info/record'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'conda-forge/label/gcc7::click-plugins-1.0.4-py_0' cannot be installed due to a
path collision for 'lib/site-packages/click_plugins-1.0.4.dist-info/wheel'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'conda-forge/label/gcc7::click-plugins-1.0.4-py_0' cannot be installed due to a
path collision for 'lib/site-packages/click_plugins-1.0.4.dist-info/top_level.txt'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'conda-forge/label/gcc7::click-plugins-1.0.4-py_0' cannot be installed due to a
path collision for 'lib/site-packages/click_plugins-1.0.4.dist-info/zip-safe'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'conda-forge/label/gcc7::click-plugins-1.0.4-py_0' cannot be installed due to a
path collision for 'lib/site-packages/click_plugins/__init__.py'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'conda-forge/label/gcc7::click-plugins-1.0.4-py_0' cannot be installed due to a
path collision for 'lib/site-packages/click_plugins/core.py'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'conda-forge/label/gcc7::cligj-0.4.0-py_1' cannot be installed due to a
path collision for 'lib/site-packages/cligj/__init__.py'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'conda-forge/label/gcc7::cligj-0.4.0-py_1' cannot be installed due to a
path collision for 'lib/site-packages/cligj/features.py'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'conda-forge/label/gcc7::munch-2.3.2-py_0' cannot be installed due to a
path collision for 'lib/site-packages/munch/__init__.py'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'conda-forge/label/gcc7::munch-2.3.2-py_0' cannot be installed due to a
path collision for 'lib/site-packages/munch/python3_compat.py'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: This transaction has incompatible packages due to a shared path.
  packages: defaults::hdf4-4.2.13-h712560f_2, defaults::hdf5-1.8.18-hcf527f2_1
  path: 'library/copying'


ClobberError: This transaction has incompatible packages due to a shared path.
  packages: defaults::hdf4-4.2.13-h712560f_2, defaults::hdf5-1.8.18-hcf527f2_1
  path: 'library/release.txt'


ClobberError: This transaction has incompatible packages due to a shared path.
  packages: conda-forge/label/gcc7::jupyter_core-4.4.0-py_0, conda-forge/label/gcc7::jupyter-1.0.0-py_1
  path: 'lib/site-packages/jupyter.py'


ClobberError: This transaction has incompatible packages due to a shared path.
  packages: conda-forge/label/gcc7::jupyter_core-4.4.0-py_0, conda-forge/label/gcc7::jupyter-1.0.0-py_1
  path: 'lib/site-packages/__pycache__/jupyter.cpython-36.pyc'

對於Windows:

重要! 您需要安裝先決條件庫的確切版本,它可能不是2019年8月23日的最新版本。

  1. Windows的Python擴展包下載:

    • Shapely-1.6.4.post2-cp37-cp37m-win_amd64.whl
    • pyproj-2.1.3-cp37-cp37m-win_amd64.whl
    • 底圖1.2.1-cp37-cp37m-win_amd64.whl
    • 菲奧娜1.8.6-cp37-cp37m-win_amd64.whl
    • GDAL-2.4.1-cp37-cp37m-win_amd64.whl
    • Cartopy-0.17.0-cp37-cp37m-win_amd64.whl
  2. 用pip安裝whl文件:“ pip install download.location.directory \\ file.whl”

    我使用的是python 3.7,所以我選擇cp37文件,如果您使用的是python 2.7,則需要獲取cp27文件。

    我使用的是Win-64bit,所以我選擇amd64文件,如果使用的是Win32,則需要選擇win32文件

  3. 從同一位置下載並安裝:

    • geopandas-0.5.1-py2.py3-none-any.whl

我也安裝(如果需要,可選)

  • 笛卡爾1.1.0-py2.py3-none-any.whl

  • pyepsg-0.4.0-py3-none-any.whl

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM