C:\Users\mavis>pip3 install dpkt -i http://mirrors.aliyun.com/pypi/simple/
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.aliyun.com'.
ERROR: Could not find a version that satisfies the requirement dpkt (from versions: none)
ERROR: No matching distribution found for dpkt
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the 'C:\Users\mavis\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.
C:\Users\mavis>pip3 install dpkt -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple/
Collecting dpkt
Downloading http://pypi.doubanio.com/packages/0b/d5/456eac764c73a0ec7d1f6ed2d8802e733873da1b73bb03b3d0ea15012d00/dpkt-1.9.7.2-py3-none-any.whl (181 kB)
|████████████████████████████████| 181 kB 544 kB/s
Installing collected packages: dpkt
Successfully installed dpkt-1.9.7.2
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the 'C:\Users\mavis\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.
更新pip:
python -m pip install --upgrade pip
--trusted-host pypi.douban.com 这是为了获得ssl证书的认证,要不然会报错
换下载源。
清华:https://pypi.tuna.tsinghua.edu.cn/simple/
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/