Python pcapy installation Error link.exe failed with exit status 1120

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.