使用EXE安装似乎没有出错(在我的情况下是pywin32-219.win-amd64-py3.5.exe),但是当运行Python解释器并尝试“import win32api”时,会出现以下错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.
如果我下载zip文件并尝试运行“setup3.py install”,会得到以下输出:
Converting...
Executing...
Building pywin32 3.5.219.0
Traceback (most recent call last):
File "setup3.py", line 16, in <module>
exec(str(got))
File "<string>", line 1929, in <module>
File "<string>", line 587, in __init__
File "C:\Python35\lib\ntpath.py", line 113, in join
genericpath._check_arg_types('join', path, *paths)
File "C:\Python35\lib\genericpath.py", line 143, in _check_arg_types
(funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'NoneType'
我已经尝试了几种方法,但无法使其正常工作。
有人已经成功地安装并在Python 3.5中正确运行pywin32吗?