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 'quant_cpu' #39

Closed
smsskil opened this issue Dec 16, 2020 · 2 comments
Closed

no module named 'quant_cpu' #39

smsskil opened this issue Dec 16, 2020 · 2 comments

Comments

@smsskil
Copy link

smsskil commented Dec 16, 2020

Hi,
when I run "from qtorch.quant import Quantizer, quantizer" here report an error

**/usr/lib/python3.6/imp.py in find_module(name, path)
295 break # Break out of outer loop when breaking out of inner loop.
296 else:
--> 297 raise ImportError(_ERR_MSG.format(name), name=name)
298
299 encoding = None

ImportError: No module named 'quant_cpu'**

It has the same problem in 0.1.1 and 0.2.0. How to fix it?

@Tiiiger
Copy link
Owner

Tiiiger commented Dec 16, 2020

Hi @smsskil

I am not entirely sure. Did you install the package through pip or from source?

@smsskil
Copy link
Author

smsskil commented Dec 17, 2020

Hi @smsskil

I am not entirely sure. Did you install the package through pip or from source?

Hi @Tiiiger

Now I figure out where caused the error. It's due to some dependencies.
Need to install gcc g++ before using the API.

Thanks

@smsskil smsskil closed this as completed Dec 17, 2020
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

2 participants