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 'migraphx' #72

Open
liangyong928 opened this issue Apr 10, 2024 · 2 comments
Open

No module named 'migraphx' #72

liangyong928 opened this issue Apr 10, 2024 · 2 comments

Comments

@liangyong928
Copy link

Description of errors

I have successfully built torch_migraphx, but when I try to import it, it always fails with an error " No module named 'migraphx' " I'm not sure why this is happening.

Attach any links, screenshots, or additional evidence you think will be helpful.

No response

@onesnep
Copy link

onesnep commented Apr 19, 2024

I had the same error. Setting an environmental variable to the rocm path like so solved it:

export PYTHONPATH=/opt/rocm/lib:$PYTHONPATH

The rocm directory is usually in /opt, though some distros place it elsewhere.

@FeepingCreature
Copy link

FeepingCreature commented May 12, 2024

If you're on a new Ubuntu, you might be on Python 3.11. Migraphx (not torch_migraphx) only ships libs for Python 3.8 and 3.10. Check python --version.

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

3 participants