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

I cant import any python modules, and cant install any modules with pip either

当我尝试导入使用 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

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

一切都很完美,但我尝试安装可视化或 python 模块,然后,我得到了那个错误。我想我尝试用 pip 安装模块,然后用 conda 安装。我不知道该怎么做。

尝试升级密码库,像这样:

pip install cryptography==3.3.2