python 安装模块时出现报错:“OSError: [WinError 126] 找不到指定的模块” 的解决方案

在安装tzwhere 时,无法成功安装,出现以下报错:

Collecting tzwhere
  Downloading https://files.pythonhosted.org/packages/3d/e9/18e4822f6e4640332b97c744378da427bc28d2399235520349bb17e06aa4/tzwhere-3.0.3.tar.gz (23.7MB)
    100% |████████████████████████████████| 23.7MB 675kB/s
Collecting shapely (from tzwhere)
  Downloading https://files.pythonhosted.org/packages/a2/fb/7a7af9ef7a35d16fa23b127abee272cfc483ca89029b73e92e93cdf36e6b/Shapely-1.6.4.post2.tar.gz (225kB)
    100% |████████████████████████████████| 235kB 3.3MB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "", line 1, in 
      File "C:\Users\zd\AppData\Local\Temp\pip-install-eq1c6ais\shapely\setup.py", line 80, in 
        from shapely._buildcfg import geos_version_string, geos_version, \
      File "C:\Users\zd\AppData\Local\Temp\pip-install-eq1c6ais\shapely\shapely\_buildcfg.py", line 200, in 
        lgeos = CDLL("geos_c.dll")
      File "c:\python36\lib\ctypes\__init__.py", line 348, in __init__
        self._handle = _dlopen(self._name, mode)
    OSError: [WinError 126] 找不到指定的模块。

之后安装了shapely ,下载地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely

下载对应版本后:

pip  install D:\Chromedowload\Shapely-1.6.4.post2-cp36-cp36m-win_amd64.whl

安装好后,再次安装你所需要的库即可。

你可能感兴趣的:(问题解决方案汇总)