|
发表于 2019-10-6 16:30:36
|
显示全部楼层
C:\Python37\Scripts>pip install pywifi
Collecting pywifi
Downloading https://files.pythonhosted.org/p ... 12-py3-none-any.whl
Installing collected packages: pywifi
Successfully installed pywifi-1.1.12
WARNING: You are using pip version 19.1, however version 19.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\Python37\Scripts>python
Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pywifi
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python37\lib\site-packages\pywifi\__init__.py", line 15, in <module>
from .wifi import PyWiFi
File "C:\Python37\lib\site-packages\pywifi\wifi.py", line 15, in <module>
from .iface import Interface
File "C:\Python37\lib\site-packages\pywifi\iface.py", line 11, in <module>
from . import _wifiutil_win as wifiutil
File "C:\Python37\lib\site-packages\pywifi\_wifiutil_win.py", line 12, in <module>
from comtypes import GUID
ModuleNotFoundError: No module named 'comtypes'
>>> ^Z
C:\Python37\Scripts>pip install comtypes
Collecting comtypes
Downloading https://files.pythonhosted.org/p ... /comtypes-1.1.7.zip (180kB)
|████████████████████████████████| 184kB 273kB/s
Installing collected packages: comtypes
Running setup.py install for comtypes ... done
Successfully installed comtypes-1.1.7
WARNING: You are using pip version 19.1, however version 19.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\Python37\Scripts>python
Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pywifi
>>> |
|