I was trying to follow a project in university where we had to import cellpose. The import delivered an error message which could be tracebacked to import torch (see below). Every import was done in a clean pre-defined environment, which worked for most of the other students.
ImportError Traceback (most recent call last)
Cell In[9], line 1
----> 1 import torch
File ~\miniforge3\envs\labcourse-ia\Lib\site-packages\torch\__init__.py:416
414 if USE_GLOBAL_DEPS:
415 _load_global_deps()
--> 416 from torch._C import * # noqa: F403
419 class SymInt:
420 """
421 Like an int (including magic methods), but redirects all operations on the
422 wrapped node. This is used in particular to symbolically record operations
423 in the symbolic shape workflow.
424 """
ImportError: DLL load failed while importing _C: Die angegebene Prozedur wurde nicht gefunden.
Would appreciate all the help! Cheers
After debugging for awhile, I decided to install Microsoft Visual Studio C++, which didn't resolve the issue either. I'm a little bit perplexed why this happened on my computer. I've also reinstalled my IDE (PyCharm), uninstalled all package managers and subsequently only installed miniforge3 with one environment.