列出从% s开始的包。
pip list | grep ^s
setuptools 56.0.0
six 1.12.0
sniffio 1.2.0
socks 0为什么版本号是零?
python3
Python 3.9.6 (default, Jul 14 2021, 09:15:03)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import socks
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'socks'
debian@debian:~$ pip3 install socks
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: socks in /usr/local/lib/python3.7/dist-packages (0)
WARNING: You are using pip version 21.1.2; however, version 21.1.3 is available.
debian@debian:~$ python3
Python 3.9.6 (default, Jul 14 2021, 09:15:03)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import socks
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'socks'我的python中的包-socks有什么问题?pip可能没有指向python3?
python3 -m pip list | grep ^s
selenium 3.141.0
setuptools 56.0.0
six 1.16.0
sniffio 1.2.0
socks 0发布于 2021-07-18 20:59:19
如果您不确定是否安装了socks,请使用:
pip安装socks
在命令提示符下。这样,它就会告诉您已安装或已为您安装
https://stackoverflow.com/questions/68429279
复制相似问题