2013-10-28 1 views
1

.msi 설치 프로그램을 사용하여 Windows 7 컴퓨터에 python libtorrent를 설치했습니다. libtorrent를 가져올 때 다음과 같은 오류가 발생합니다.Python libtorrent

Traceback (most recent call last): 
    File "x:\Dropbox\PyDVR\torrent.py", line 3, in <module> 
    import libtorrent as lt 
ImportError: DLL load failed: %1 is not a valid Win32 application. 

내가 뭘 잘못하고 있는지 알기 원하십니까?

+0

사용한 코드는 무엇입니까? –

답변

0

OS의 아키텍처 때문일 수 있습니다. OS가 64 비트이고 Python 64 비트를 실행하고 있는지 확인하십시오. 그들을 맞추려고하지 않으면 문제가 해결 될 수 있습니다. 또한 libtorrent가 64/32 비트인지 확인하십시오. OS와 Python이 64 비트이고 32 비트 libTorrent를 사용하는 경우이 문제가 발생할 수 있습니다.

+0

Windows 7 64 비트 및 Python 64 비트를 실행 중입니다. win32에서 [MSC v.1500 64 비트 (AMD64)] Python 2.6.4 (r264 : 75708, 2009 년 10 월 26 일 07:36:50) 유형 자세한 내용은 "도움", "저작권", "크레디트"또는 "라이센스". 파이썬 libtorrent는 win32로만 제공됩니다 : [link] (https://code.google.com/p/libtorrent/downloads/list) – user2928103

+0

은 libtorrent 64 비트 바이너리입니까? – jester

+0

Python 2.7 32 비트 및 libTorrent를 Python 2.7 용으로 설치했습니다. – user2928103

관련 문제