Код: Выделить всё
In [1]: import torch
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[1], line 1
----> 1 import torch
File ~/micromamba/envs/Jan03/lib/python3.13/site-packages/torch/__init__.py:367
365 if USE_GLOBAL_DEPS:
366 _load_global_deps()
--> 367 from torch._C import * # noqa: F403
370 class SymInt:
371 """
372 Like an int (including magic methods), but redirects all operations on the
373 wrapped node. This is used in particular to symbolically record operations
374 in the symbolic shape workflow.
375 """
ImportError: dlopen(/Users/sammcd/micromamba/envs/Jan03/lib/python3.13/site-packages/torch/_C.cpython-313-darwin.so, 0x0002): Symbol not found: __ZN4absl12lts_2024072212log_internal10LogMessagelsIiLi0EEERS2_RKT_
Referenced from: /Users/sammcd/micromamba/envs/Jan03/lib/libprotobuf.28.2.0.dylib
Expected in: /Users/sammcd/micromamba/envs/Jan03/lib/libabsl_log_internal_message.2407.0.0.dylib
У меня есть работающая venv с Python 3.9 и pytorch 2.4 и другие неудачные venvs с Python 3.12 и pytorch 2.5
Подробнее здесь: https://stackoverflow.com/questions/793 ... ng-to-load
Мобильная версия