我无法导入任何 python 模块,也无法使用 pip 安装任何模块

Mat*_* D. 3 python import module pip

当我尝试导入使用 pip3 安装的任何模块时,系统只会向我发送大量文本。很抱歉我无法指定更好的内容,但我对 python 和 ubuntu 很陌生。我尝试了命令 pip3 list 然后我得到这个:

/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
Run Code Online (Sandbox Code Playgroud)

之后,我得到了一些软件包及其版本的列表。我记得安装的软件包没有出现在列表中,例如NumPyrandom。我正在使用python 3.8pip 3

一切都很完美,但我尝试安装 Visual 或 python 模块,之后出现了错误。我想我尝试使用 pip 安装模块,然后使用 conda 安装模块。我不知道该怎么做。

Bri*_*akh 5

尝试升级密码库,如下所示:

pip install cryptography==3.3.2
Run Code Online (Sandbox Code Playgroud)