【python】pywin32 ImportError: DLL load failed: 找不到指定的模块
2017-08-08 14:35
1061 查看
最近安装TPOT的时候,发现安装能成功,然而import tpot总是失败。百度上关于TPOT的安装资料也少的可怜,在各种鼓捣下,终于解决了这个问题。
问题描述如下:
**原因是pywin32的dll需要放到C:\Windows\System32目录下,
我的python默认目录为:D:\python\Lib\site-packages\pywin32_system32
该文件夹下有两个dll,“pythoncom35.dll” 和“pywintypes35.dll”,复制到C:\Windows\System32目录。**
这样系统便可找到该模块
上述的前提是把TPOT的依赖完全安装好,出现的问题。
TPOT官网:http://rhiever.github.io/tpot/installing/
问题描述如下:
>>>import tpot Traceback (most recent call last): File "<stdin>", line 1, in <module> File "D:\python\lib\site-packages\tpot\__init__.py", line 23, in <module> from .tpot import TPOTClassifier, TPOTRegressor File "D:\python\lib\site-packages\tpot\tpot.py", line 22, in <module> from .base import TPOTBase File "D:\python\lib\site-packages\tpot\base.py", line 64, in <module> import win32api ImportError: DLL load failed: 找不到指定的模块。
**原因是pywin32的dll需要放到C:\Windows\System32目录下,
我的python默认目录为:D:\python\Lib\site-packages\pywin32_system32
该文件夹下有两个dll,“pythoncom35.dll” 和“pywintypes35.dll”,复制到C:\Windows\System32目录。**
这样系统便可找到该模块
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import tpot >>>
上述的前提是把TPOT的依赖完全安装好,出现的问题。
TPOT官网:http://rhiever.github.io/tpot/installing/
相关文章推荐
- ImportError: DLL load failed:找不到指定的模块 解决方案(Python)
- python 找不到mysqldb模块(ImportError: DLL load failed: 找不到指定的模块)
- 关于python scrapy执行爬虫出现的 ImportError: DLL load failed:找不到指定的模块
- 解决python import sklearn 出现 ImportError: DLL load failed: 找不到指定的模块
- 解决-win10系统-python3中import cv2显示"ImportError: DLL load failed: 找不到指定的模块。"
- cx_Oracle ImportError: DLL load failed: 找不到指定的模块 解决 -->复制oci.dll到$python_home
- 终于解决了python 3.x import cv2 “ImportError: DLL load failed: 找不到指定的模块” 的问题
- python2.7 sklearn 使用报错ImportError: DLL load failed: 找不到指定模块
- pywin32 ImportError: DLL load failed: 找不到指定的模块
- Python3.6 numpy opencv3.2 安装 及 ImportError: DLL load failed: 找不到指定的模块
- python sklearn sklearn报错解决 ImportError: DLL load failed: 找不到指定的模块
- Import cv2 ImportError:DLL load failed:找不到指定模块 解决方法
- ImportError: DLL load failed: 找不到指定的模块
- sklearn报错解决 ImportError: DLL load failed: 找不到指定的模块
- win10,Anaconda(python3.6)安装opencv-python, 以及解决import cv2 失败 ImportError:DLL load fail:找不到指定模块
- 解决安装python matplotlib包时出现”ImportError: DLL load failed: 找不到指定的程序“ 的问题
- import cx_Oracle,ImportError: DLL load failed: 找不到指定的模块
- SQLAlchemy连接mysql时,所出现的importerror: dll load failed: 找不到指定模块
- 在import cv2时,显示"ImportError: DLL load failed: 找不到指定的模块
- 运行Scrapy项目提示“import win32api ImportError: DLL load failed: 找不到指定的模块。”