Python 3.11.3,ImportError: libmbedcrypto.so.7: cannot open shared object file错误

Python 3.11.3 (main, Jun  5 2023, 09:32:32) [GCC 13.1.1 20230429] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
  File "", line 1, in
  File "/usr/lib/python3.11/site-packages/torch/__init__.py", line 229, in
    from torch._C import *  # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^
ImportError: libmbedcrypto.so.7: cannot open shared object file: No such file or directory

2台manjaro系统的机器,一台正常,另一台会出现以上错误。查了下,pacman或者yay安装 mbedtls2 这个包就不报错了。奇怪的是,正常的那台机器并没有装这个包,也不报错。

你可能感兴趣的:(pytorch,人工智能,python)