Open sureshd2020 opened 3 weeks ago
I am trying to use pytorch and python to run a small program. I installed both using conda in Anaconda. But, I keep getting Numpy error - "ImportError: DLL load failed while importing _multiarray_umath: The specified module could not be found."
Spent over 4 hours on this problem. Any help would be appreciated. Thanks,
I get the same error when I type import torch on the Ipython console. The error is "The specified module could not be found. (Triggered internally at C:\cb\pytorch_1000000000000\work\torch\csrc\utils\tensor_numpy.cpp:84.) cpu = _conversion_method_template(device=torch.device("cpu"))"
Hi @sureshd2020 I would say your issue is related with having incompatible versions of numpy and pytorch installed. Did you follow the pytorch guide to install it (https://pytorch.org/get-started/locally/#anaconda)? I would suggest you to create a new conda env from an Anaconda prompt runing something like
conda create -n pytorch-env python=3.9
Then activate the created env:
conda activate pytorch-env
And then install there anything related to pytorch following there guide (choosing over the selector to get the installation command the Conda
option). For example pytorch with only CPU support on Windows should be something like:
conda install pytorch torchvision torchaudio cpuonly -c pytorch
After that, try to install Spyder over the same env with something like
conda install spyder
I think there is not much we can do over the Spyder side to help you but let us know if the info above helps!
Thank you will try that
"Support the fight against Corruption - support "India Against Corruption".
On Wed, Aug 28, 2024 at 4:25 AM Daniel Althviz Moré < @.***> wrote:
Hi @sureshd2020 https://github.com/sureshd2020 I would say your issue is related with having incompatible versions of numpy and pytorch installed. Did you follow the pytorch guide to install it ( https://pytorch.org/get-started/locally/#anaconda)? I would suggest you to create a new conda env from an Anaconda prompt runing something like
conda create -n pytorch-env python=3.9
Then activate the created env:
conda activate pytorch-env
And then install there anything related to pytorch following there guide (choosing over the selector to get the installation command the Conda option). For example pytorch with only CPU support on Windows should be something like:
conda install pytorch torchvision torchaudio cpuonly -c pytorch
After that, try to install Spyder over the same env with something like
conda install spyder
I think there is not much we can do over the Spyder side to help you but let us know if the info above helps!
— Reply to this email directly, view it on GitHub https://github.com/spyder-ide/spyder/issues/22384#issuecomment-2313708990, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6GAL4XVVSROH5V7AMTVTDZTT7V3AVCNFSM6AAAAABND6IOYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJTG4YDQOJZGA . You are receiving this because you were mentioned.Message ID: @.***>
Description
What steps will reproduce the problem?
As soon as it starts running python, I get these messages: ImportError: DLL load failed while importing _multiarray_umath: The specified module could not be found.
Traceback
Versions
Dependencies