Thank you very much for your fast answer @lorenzznerol (are you italian like me?),
I tried activating the base environment and it solves the warning in python but not the torch error.
C:\Users\AZand_000\Downloads\Pytorch\pytorch>conda activate base
(base) C:\Users\AZand_000\Downloads\Pytorch\pytorch>python
Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\AZand_000\Downloads\Pytorch\pytorch\torch\__init__.py", line 128, in <module>
raise err
OSError: [WinError 126] Impossibile trovare il modulo specificato. Error loading "C:\Users\AZand_000\Downloads\Pytorch\pytorch\torch\lib\caffe2_detectron_ops_gpu.dll" or one of its dependencies.
>>>
After that I tried to activate myenv (that is my torch environment) but it dosen’t work anyway:
(myenv) C:\Users\AZand_000\Downloads\Pytorch\pytorch>conda activate base
(base) C:\Users\AZand_000\Downloads\Pytorch\pytorch>activate myenv
(myenv) C:\Users\AZand_000\Downloads\Pytorch\pytorch>python
Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Warning:
This Python interpreter is in a conda environment, but the environment has
not been activated. Libraries may fail to load. To activate this environment
please see https://conda.io/activation
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\AZand_000\Downloads\Pytorch\pytorch\torch\__init__.py", line 128, in <module>
raise err
OSError: [WinError 126] Impossibile trovare il modulo specificato. Error loading "C:\Users\AZand_000\Downloads\Pytorch\pytorch\torch\lib\caffe2_detectron_ops_gpu.dll" or one of its dependencies.