I have been trying to fix the python path on my cpu, and I originally was just trying to change my .bash_profile
, but that wasn't working, so I used
import sys
sys.pat.append(path/To/Module)
and now when I run my script, I get this error message
How can I either fix this issue or undo the sys.path.append(path/To/Module)
?
Also, is it possible to export multiple directories in the python path, and if so how do I do that?
sys.path
should only change the lookup path for the run duration of that script. It won't affect other scripts... – Berceusesys.path
indicates a serious design flaw, the default paths should suffice. But your error looks related toLD_LIBRARY_PATH
(or better,-rpath
) actually. – Kozhikode