weixin_39789979
weixin_39789979
2021-01-07 04:43

Unable to install pypiwin32 on python 2.7

When trying to install the package using pip, getting below error: C:\Users\abc\Downloads>pip install pypiwin32-219.zip Unpacking c:\users\abc\downloads\pypiwin32-219.zip Running setup.py (path:c:\users\abc\appdata\local\temp\pip-v9iuar-build\s etup.py) egg_info for package from file:///C:/Users/abc/Downloads/pypiwin32 -219.zip Building pywin32 2.7.219.0 Traceback (most recent call last): File "", line 17, in File "c:\users\abc\appdata\local\temp\pip-v9iuar-build\setup.py", lin e 1930, in """ % dirs).split(), File "c:\users\abc\appdata\local\temp\pip-v9iuar-build\setup.py", lin e 588, in init if os.path.isfile(os.path.join(sdk_dir, "include", "activdbg.h")): File "C:\Python27\lib\ntpath.py", line 96, in join assert len(path) > 0 TypeError: object of type 'NoneType' has no len() Complete output from command python setup.py egg_info: Building pywin32 2.7.219.0

Traceback (most recent call last):

File "", line 17, in

File "c:\users\abc\appdata\local\temp\pip-v9iuar-build\setup.py", line 19 30, in

""" % dirs).split(),

File "c:\users\abc\appdata\local\temp\pip-v9iuar-build\setup.py", line 58 8, in init

if os.path.isfile(os.path.join(sdk_dir, "include", "activdbg.h")):

File "C:\Python27\lib\ntpath.py", line 96, in join

assert len(path) > 0

TypeError: object of type 'NoneType' has no len()

Cleaning up... Command python setup.py egg_info failed with error code 1 in c:\users\abc\a ppdata\local\temp\pip-v9iuar-build Storing debug log for failure in C:\Users\abc\pip\pip.log

Reported by: navalkgupta

Original Ticket: pywin32/bugs/699

该提问来源于开源项目:mhammond/pywin32

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答