Torch/lib/libtorch_global_deps.so: cannot open shared object file: No such file or directory

Hey, I was trying to install pytorch from source using the comands

export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"}
python setup.py develop

after getting the source code by

git clone --recursive https://github.com/pytorch/pytorch
cd pytorch

When I run a test.py skript in this github folder with the torch folder, I get the
error message

Traceback (most recent call last):
  File ".../pytorch/test.py", line 1, in <module>
    import torch
  File ".../pytorch/torch/__init__.py", line 236, in <module>
    _load_global_deps()
  File ".../pytorch/torch/__init__.py", line 195, in _load_global_deps
    raise err
  File ".../pytorch/torch/__init__.py", line 176, in _load_global_deps
    ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
  File ".../anaconda3/envs/testenv/lib/python3.11/ctypes/__init__.py", line 376, in __init__
    self._handle = _dlopen(self._name, mode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: .../pytorch/torch/lib/libtorch_global_deps.so: cannot open shared object file: No such file or directory

Should torch not be callable directly from this folder?

Change the directory to e.g. the test folder and check if this would work.