加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

无法使pywin32-219与python 3.5一起使用

发布时间:2020-12-14 02:26:32 所属栏目:Windows 来源:网络整理
导读:它似乎安装没有错误使用EXE(在我的情况下pywin32-219.win-amd64-py3.5.exe)但是当运行 python解释器并尝试“导入win32api”时,我收到以下错误: Traceback (most recent call last): File "stdin",line 1,in moduleImportError: DLL load failed: The specif
它似乎安装没有错误使用EXE(在我的情况下pywin32-219.win-amd64-py3.5.exe)但是当运行 python解释器并尝试“导入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:Python35libntpath.py",line 113,in join
    genericpath._check_arg_types('join',path,*paths)
  File "C:Python35libgenericpath.py",line 143,in _check_arg_types
    (funcname,s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes,not 'NoneType'

我已经尝试过几件事,但是无法让它发挥作用.

有没有人得到pywin32安装和使用python 3.5正常工作?

解决方法

您需要在写入system32文件夹时以提升的权限运行pywin安装程序.如果未使用提升的权限运行,请打开admin cmd提示符并在pywin安装目录中运行postinstall脚本.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读