4

我在我的机器上安装 pywin32 时遇到问题。我正在使用easy_install python,这是我得到的日志。

我提前为发布整个日志道歉,尽管分析问题只需要其中的一部分。

Downloading
http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/py
win32-218.zip/download

Processing pywin32-218.zip

Writing
c:\users\jugesh\appdata\local\temp\easy_install-o_rxio\pywin32-218\setup
.cfg

Running pywin32-218\setup.py -q bdist_egg --dist-dir
c:\users\jugesh\appdata\loc
al\temp\easy_install-o_rxio\pywin32-218\egg-dist-tmp-25h0eo

Building pywin32 2.7.218.0

Traceback (most recent call last):
 File "C:\Python27\Scripts\easy_install-script.py", line 9, in <module>
     load_entry_point('setuptools==0.8', 'console_scripts', 'easy_install')()
 File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 1992,
 in  main
 File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 1979,
 in  with_ei_usage
 File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 1996,
 in  <lambda>
 File "C:\Python27\Lib\distutils\core.py", line 152, in setup
     dist.run_commands()
 File "C:\Python27\Lib\distutils\dist.py", line 953, in run_commands
     self.run_command(cmd
 File "C:\Python27\Lib\distutils\dist.py", line 972, in run_command
     cmd_obj.run()
 File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 380,
 in run
 File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 623,
 in easy_install
 File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 653,
 in install_item
 File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 849,
 in install_eggs
 File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 1130,
 in  build_and_install
 File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 1115,
 in  run_setup
 File "build\bdist.win32\egg\setuptools\sandbox.py", line 69, in run_setup
 File "build\bdist.win32\egg\setuptools\sandbox.py", line 120, in run
 File "build\bdist.win32\egg\setuptools\sandbox.py", line 71, in <lambda>  
 File "setup.py", line 1957, in <module>
 File "setup.py", line 605, in __init__
 File "C:\Python27\Lib\ntpath.py", line 96, in join
    assert len(path) > 0
TypeError: object of type 'NoneType' has no len()
4

1 回答 1

6

easy_install您可以尝试使用Christoph Gohlke 网站上提供的 Pywin32 的 Windows 二进制文件,而不是使用。

于 2013-07-28T00:58:30.813 回答