al45tair / netifaces

MIT License
327 stars 82 forks source link

linux Build and compile errors during installation and execution #60

Closed WangSongsen closed 4 years ago

WangSongsen commented 4 years ago

image  Wrote a test file to understand the library but I seem to have some trouble and don't know how to solve it

image

al45tair commented 4 years ago

This is nothing to do with netifaces. You're presumably after psutil?

WangSongsen commented 4 years ago

so sorry Why the test case (test.py) in our library cannot be executed(linux python3.7) image

al45tair commented 4 years ago

If I had to guess, it's because you've got something in sys.path (i.e. PYTHONPATH) that is called netifaces but that isn't actually netifaces. If there's an __init__.py in the directory this test program is in, it could even be this directory itself.