python import error WindowsError: [Error 126] -
import nfc
when import nfc in python editor ,it can't import ,why??
traceback (most recent call last): file "<stdin>", line 1, in module file "e:\python27\lib\site-packages\nfc\__init__.py", line 22, in <module> . import clf file "e:\python27\lib\site-packages\nfc\clf\__init__.py", line 25, in <module> . import device file "e:\python27\lib\site-packages\nfc\clf\device.py", line 32, in <module> . import transport file "e:\python27\lib\site-packages\nfc\clf\transport.py", line 31, in <module> import usb1 libusb file "e:\python27\lib\site-packages\usb1\__init__.py", line 61, in <module> . import libusb1 file "e:\python27\lib\site-packages\usb1\libusb1.py", line 173,in_loadlibrary return dll_loader('libusb-1.0' + suffix, **loader_kw) file "e:\python27\lib\ctypes\__init__.py", line 362, in __init__ self._handle = _dlopen(self._name, mode) windowserror: [error 126]
when pip install nfcpy
e:\python27\scripts>pip install nfcpy requirement satisfied: nfcpy in e:\python27\lib\site-packages requirement satisfied: libusb1 in e:\python27\lib\site-packages (from nfcpy) requirement satisfied: pydes in e:\python27\lib\site-packages (from nfcpy) requirement satisfied: pyserial in e:\python27\lib\site-packages (from nfcpy) requirement satisfied: ndeflib in e:\python27\lib\site-packages (from nfcpy)
Comments
Post a Comment