Error information
(venv) D:\pyvenv_xlwings64\venv>pip list
Package Version
---------- -------
comtypes 1.1.7
pip 19.2.3
PyQt5 5.13.1
PyQt5-sip 4.19.19
pywin32 225
setuptools 41.2.0
wheel 0.33.6
xlwings 0.15.3
(venv) D:\pyvenv_xlwings64\venv>python
Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import xlwings
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\pyvenv_xlwings64\venv\lib\site-packages\xlwings\__init__.py", line 42, in <module>
from . import _xlwindows as xlplatform
File "D:\pyvenv_xlwings64\venv\lib\site-packages\xlwings\_xlwindows.py", line 10, in <module>
import win32api
ImportError: DLL load failed: The specified program could not be found.
>>>
Cause of the problem
There is a problem with the new version 224 and 225. Just go back to version 223
(venv) D:\pyvenv_xlwings64\venv>pip install pywin32==223
Collecting pywin32==223
Downloading https://files.pythonhosted.org/packages/9f/9d/f4b2170e8ff5d825cd4398856fee88f6c70c60bce0aa8411ed17c1e1b21f/pywin32-223-cp36-cp36m-win_amd64.whl (9.0MB)
|████████████████████████████████| 9.0MB 218kB/s
Installing collected packages: pywin32
Successfully installed pywin32-223
(venv) D:\pyvenv_xlwings64\venv>
(venv) D:\pyvenv_xlwings64\venv>
(venv) D:\pyvenv_xlwings64\venv>
(venv) D:\pyvenv_xlwings64\venv>pip list
Package Version
---------- -------
comtypes 1.1.7
pip 19.2.3
PyQt5 5.13.1
PyQt5-sip 4.19.19
pywin32 223
setuptools 41.2.0
wheel 0.33.6
xlwings 0.15.3
(venv) D:\pyvenv_xlwings64\venv>python
Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import xlwings
>>>
Read More:
- import statsmodels.api as sm Error: ImportError: DLL load failed while importing _arpack: The specified program could not be found.
- [Solved] wxauto error: ImportError: DLL load failed while importing win32gui: Can’t find the specified program
- How to Solve Python Importerror: DLL load failed: unable to find the specified program using tensorflow
- [Solved] librosa Install Error: ImportError: DLL load failed: Could Not Found
- ImportError: DLL load failed while importing _multiarray_umath: The specified module could not be found.
- [Solved] D2lzh_Pytorch Import error: importerror: DLL load failed while importing
- Pycharm error: original error was: DLL load failed while importing _multiarray _Umath: the specified module could not be found
- Importerror: DLL load failed: unable to find the specified module in Python
- [Solved] Converting IU to py using pyuic5 – O reports an error importerror: DLL load failed while importing qtcore: the specified module cannot be found.
- [Solved] Numpy Load Error: DLL load failed while importing _multiarray_umath: Could not be found Module
- [Solved] OpenCV Import Error: ImportError: numpy.core.multiarray failed to import
- [Solved] DLL load failed while importing _sqlite3: the specified module could not be found.
- TensorFlow Install Error: Could not load dynamic library ‘*****.dll‘; dlerror: ********.dll not found
- VScode import numpy Error: DLL load failed [How to Solve]
- [Solved] Original error was: DLL load failed while importing _multiarray_umath
- Keras import package error: importerror: cannot import name ‘get_ config‘
- Jupyter notebook Failed to Switch to the Virual Environment: DLL load failed python.exe could not find the entry
- Raspberry pie import opencv error: ImportError: numpy.core.multiarray failed to import
- [Mac Pro M1] Python3.9 import cv2 Error: Reason: image not found
- [Solved] From pip._internal import cmdoptions ImportError: cannot import name SourceDistribution