Win7 64-bit installation pcapy pack times wrong:
Error:command ' "C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C + + for python\9.0\vc\bin\ Amd64\link.exe "' failed with exit status 11
20
After the installation process is referred to as follows, still error:
http://blog.csdn.net/qidi_huang/article/details/51692506
View the setup.py file and find that the environment variable is dependent on: Wpdpack_base,
1 ifSys.platform = ='Win32':2 ifOs.environ.get ('Wpdpack_base'):3Wpdpack = os.environ['Wpdpack_base']4Include_dirs.append (Os.path.join (Wpdpack,'Include'))5 ifSys.maxsize > 2**32:#x64 Python Interpreter6 Print " -"7Library_dirs.append (Os.path.join (Wpdpack,'Lib','x64'))8 Else:#x86 Python Interpreter9Library_dirs.append (Os.path.join (Wpdpack,'Lib'))Ten Else: One #WinPcap include files AInclude_dirs.append (R'C:\wpdpack\Include') - #WinPcap Library Files -Library_dirs.append (R'C:\wpdpack\Lib') thelibraries = ['Wpcap','Packet','ws2_32'] - Else: -libraries = ['Pcap','stdc++']
The solution is as follows:
Put the Pcapy module in the directory, add to the environment variable, my following:
>>> os.environ.get (' wpdpack_base ')
' C:\\wpdpack '
>>>
Rerun python setup.py install, OK.
Python pcapy installation Error link.exe failed with exit status 1120