Closed mattthhh closed 6 months ago
psutil is not a pure python module, it needs to be compiled, so you can't get away with sys.path.insert
.
Okay, do you have any ideas to import this lib without pip and venv ? Maybe compile it from the source code ?
Okay I found, just compile it locally with a simple python interpreter, and add the result of the compilation in sys.path
Summary
Description
Hi, when I try to import the the lib that I cloned to
modules/libs/
with these lines :I got this error :
ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import)
Any ideas ? (I don't want to use pip or venv to get the library, because it needs to be flexible)