New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: No module named 'torch' #12004
Comments
@edtky Could you please give me the output of the following commands in CMD?
|
@edtky And actually you can try this script: https://gist.github.com/peterjc123/21143c0c9426a025618260dde5b6219a. |
where conda.exe
C:\Users\Edtky\Anaconda3\Scripts\conda.exe
where pip.exe
C:\Users\Edtky\AppData\Local\Programs\Python\Python35\Scripts\pip.exe
C:\Users\Edtky\Anaconda3\Scripts\conda.exe
where python.exe
C:\Users\Edtky\AppData\Local\Programs\Python\Python35\python.exe
…On Mon, Sep 24, 2018 at 2:16 AM peterjc123 ***@***.***> wrote:
@edtky <https://github.com/edtky> Could you please give me the output of
the following commands in CMD?
where conda.exe
where pip.exe
where python.exe
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12004 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhpqQKQrRAoh7ULejftyG1NensZMVyisks5ueKL-gaJpZM4W2MGu>
.
--
--------------------------------------------
Q: Why is this email three sentences or less?
A: http://three.sentenc.es
|
@edtky Looks like you have two Python environments. Please try importing torch in Anaconda Prompt. |
I ran the script and this was the message:
Sorry, we don't support this kind of message at present.
Original message:
No module named 'torch'
…On Wed, Sep 26, 2018 at 10:22 PM peterjc123 ***@***.***> wrote:
@edtky <https://github.com/edtky> And actually you can try this script:
https://gist.github.com/peterjc123/21143c0c9426a025618260dde5b6219a.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12004 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhpqQEydTvJA9Edd_kCt4xHtoqUjgdf3ks5ufGCFgaJpZM4W2MGu>
.
--
--------------------------------------------
Q: Why is this email three sentences or less?
A: http://three.sentenc.es
|
it works. I can import torch in Anaconda Prompt
On Fri, Sep 28, 2018 at 12:05 AM Edward Tiong <edwardtiong.63@gmail.com>
wrote:
… thanks - any guidance on how I can "import torch in Anaconda Prompt"?
On Fri, Sep 28, 2018 at 12:04 AM peterjc123 ***@***.***>
wrote:
> @edtky <https://github.com/edtky> Looks like you have two Python
> environments. Please try importing torch in Anaconda Prompt.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#12004 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AhpqQEhNes17alZUlGgJy39dx3WFj0IQks5ufcoFgaJpZM4W2MGu>
> .
>
--
--------------------------------------------
Q: Why is this email three sentences or less?
A: http://three.sentenc.es
--
--------------------------------------------
Q: Why is this email three sentences or less?
A: http://three.sentenc.es
|
@edtky Congratulations. Could you please close this issue? |
Also if it works for you in the terminal, using the peterjc123's check script, |
I used "conda install " command to install pytorch 1.1.0. And I successfully run
|
@peterjc123 Thank you for your reply. I have handled this problem. I successfully run a .py file through a sh file using the command In addition, I have tried to add either |
Issue description
I ran the following to installed Pytorch on my windows 10.
conda install pytorch-cpu -c pytorch
But when I tried to import torch, I get the following error:
ImportError: No module named 'torch'
i did a "conda list" and verified that pytorch was install:
pytorch-cpu 0.4.1 py36_cpuhe774522_1 pytorch
Does anyone know how to resolve this?
The text was updated successfully, but these errors were encountered: