2015-10-03 5 views
6

EXE(私の場合はpywin32-219.win-amd64-py3.5.exe)を使用してエラーが発生することはありませんが、Pythonインタプリタを実行して私がしましたpywin32-219をPython 3.5で動作させることができません

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' 

:私は、zipファイルをダウンロードして実行しようとすると、私は次の出力を取得し、「インストールsetup3.py」

Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
ImportError: DLL load failed: The specified module could not be found. 

:「インポートのWin32API」に私は次のエラーを取得しますいくつかのことを試しましたが、うまく動作しません。

pywin32をインストールしてPython 3.5で正しく動作させるにはpywin32を入手した人はいますか?

答えて

2

pywinインストーラは、system32フォルダに書き込む際に昇格された権限で実行する必要があります。管理者特権で実行しなかった場合は、管理者用のcmdプロンプトを開き、pywinのインストールディレクトリでpostinstallスクリプトを実行します。

1

ソースエラーからのコンパイルは、pywin32がすべてをクラッシュさせるエラーをキャッチしないことに関連しています。の587行目では、sdk_dirがNoneの場合にクラッシュします。

win32/src/win32wnet/PyNetresource.cpp(120): error C2440: 'initializing': 
cannot convert from 'int (__cdecl *)(PyObject *,PyObject *)' to 'PyAsyncMethods *'win32/src/win32wnet/PyNetresource.cpp(120): note: There is no context in which this conversion is possible 
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2 

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

にライン587を変更するには、クラッシュが、私のインストールは、後に次のエラーでクラッシュすることを防ぎ

関連する問題