首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >为python3.8.8安装win32com

为python3.8.8安装win32com
EN

Stack Overflow用户
提问于 2022-04-11 12:42:21
回答 1查看 287关注 0票数 -1

我尝试过在python3.8.8版本上安装win32com,使用了几种方法,最终解决了

代码语言:javascript
运行
复制
!python -m pip install pypiwin32

然而,我得到了这个错误。

代码语言:javascript
运行
复制
Collecting pypiwin32
  Downloading pypiwin32-223-py3-none-any.whl (1.7 kB)
  Downloading pypiwin32-219.zip (4.8 MB)
     |████████████████████████████████| 4.8 MB 3.2 MB/s eta 0:00:01
    ERROR: Command errored out with exit status 1:
     command: /opt/conda/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rxlumrt5/pypiwin32_d674fe4e172b4a5ab12b6b8f2aeb2d90/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rxlumrt5/pypiwin32_d674fe4e172b4a5ab12b6b8f2aeb2d90/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-eb1keprl
         cwd: /tmp/pip-install-rxlumrt5/pypiwin32_d674fe4e172b4a5ab12b6b8f2aeb2d90/
    Complete output (6 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-rxlumrt5/pypiwin32_d674fe4e172b4a5ab12b6b8f2aeb2d90/setup.py", line 121
        print "Building pywin32", pywin32_version
              ^
    SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Building pywin32", pywin32_version)?
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/2b/ca/5c086c18de8f70222787b3e824e755b68d99272531522e77bb381d4f60c8/pypiwin32-219.zip#sha256=06d478295c89dbdd4187e1ac099bb8eab93c29e298bded4e2fbc77009287fa44 (from https://pypi.org/simple/pypiwin32/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement pywin32>=223 (from pypiwin32)
ERROR: No matching distribution found for pywin32>=223

请求援助。

感谢并致以问候

雅丹丹

EN

回答 1

Stack Overflow用户

发布于 2022-04-11 12:55:14

上一次使用win32com时,我安装了包pywin32,而不是pypiwin32。我不知道pypiwin32维护得有多好,因为pypi上没有项目描述,它只有3个版本,最后一个版本是2018年(https://pypi.org/project/pypiwin32/)。

所以不妨试试这个:https://pypi.org/project/pywin32/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71828049

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档