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 _encoding_lib when running python setup.py install #20

Closed
funnyzhou opened this issue Dec 30, 2017 · 3 comments
Closed

Comments

@funnyzhou
Copy link

Traceback (most recent call last):
File "test/test.py", line 11, in
import encoding
File "/home/work/Library/PyTorch-Encoding/encoding/init.py", line 13, in
import encoding.nn
File "/home/work/Library/PyTorch-Encoding/encoding/nn/init.py", line 11, in
from .encoding import *
File "/home/work/Library/PyTorch-Encoding/encoding/nn/encoding.py", line 17, in
from .._ext import encoding_lib
File "/home/work/Library/PyTorch-Encoding/encoding/_ext/encoding_lib/init.py", line 3, in
from ._encoding_lib import lib as _lib, ffi as _ffi
ImportError: No module named _encoding_lib

@zhanghang1989
Copy link
Owner

Have you compiled and installed the package?

@funnyzhou
Copy link
Author

I've installed pytorch and used python 2.7 (on ubuntu 14.04). When compiling your package (python setup.py install), this error occurred.

@zhanghang1989
Copy link
Owner

This package only works with python3. Can you install it with python3?

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