Skip to content
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

No module named 'torch.utils.cpp_extension' #49

Closed
vsd550 opened this issue May 10, 2018 · 7 comments
Closed

No module named 'torch.utils.cpp_extension' #49

vsd550 opened this issue May 10, 2018 · 7 comments

Comments

@vsd550
Copy link

vsd550 commented May 10, 2018

I am getting this error when I run python setup.py install

Please help
Thnx

@soumith
Copy link
Member

soumith commented May 10, 2018

@vsd550 upgrade your PyTorch to be atleast 0.4 version

@zenogantner
Copy link

zenogantner commented May 16, 2018

I have the same problem when running python3 setup.py install.
My PyTorch installation is from current master.

PS: Let me know if you need more information from me.

@mit2nil
Copy link

mit2nil commented May 18, 2018

Ran into same error. Can be worked around for now by switching to commit 0fe0305

git checkout 0fe0305a54d84161008d84492268d279279fb3bb before doing python3 setup.py install

This is purely based on the fact that pytorch 0.4.0 was released on April 24th (https://github.com/pytorch/pytorch/releases). This is the last commit before April 24th on torch audio.

@cpuhrsch
Copy link
Contributor

cpuhrsch commented Apr 4, 2019

Hello @vsd550 - Is this issue still current? I'm going to close this for now as it appears resolved, but please feel encouraged to reopen.

@xipi702
Copy link

xipi702 commented Jan 14, 2020

Hello @vsd550 - Is this issue still current? I'm going to close this for now as it appears resolved, but please feel encouraged to reopen.

Could you reopen this issue? I still have trouble with it.

@xipi702
Copy link

xipi702 commented Jan 14, 2020

Hi, I think in the new version(torch 1.3.1), this problem still exists, env(ubuntu18.04, x86, cuda10.1,python3.6), use pip3 install. I also check the installed directory(~/.local/lib/python3.6/site-packages/torch/utils/), there is a cpp_extension.py, does anyone know how to solve it ?

@breznak
Copy link

breznak commented May 29, 2020

I have the same problem with (py)torch compiled from source for tag v1.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants