尝试安装 pycrpto 后出现“找不到包”以及无法看到的模块,如何处理

尝试安装 pycrpto 后出现“找不到包”以及无法看到的模块,如何处理

我试图在我的 Windows 上运行 Ubuntu shell,但现在安装时出现此错误 pycrypto

Traceback (most recent call last):
  File "/usr/local/bin/pip", line 5, in <module>
    from pip._internal import main
  File "/usr/local/lib/python3.8/dist-packages/pip/_internal/__init__.py", line 40, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/usr/local/lib/python3.8/dist-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/usr/local/lib/python3.8/dist-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
    from pip._internal.cli import cmdoptions
  File "/usr/local/lib/python3.8/dist-packages/pip/_internal/cli/cmdoptions.py", line 15, in <module>
    from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils.util'

我尝试安装该模块但它说找不到该包。

相关内容