Skip to content

[ERROR] [SofaPython3::SceneLoader] ModuleNotFoundError: No module named 'numpy' #98

Discussion options

You must be logged in to vote

Hi,

Do you have different versions of python installed on your machine?
If yes, is it possible that you've installed numpy for another version of python than the one used by SOFA binaires?

For STLIB, one possible fix is to add manually the paths to stlib3 and splib3 to the PYTHONPATH.
There are different ways to do that.

On Linux, personally, I've added this to my ~/.bashrc file to set it permanently:

export PYTHONPATH="${PYTHONPATH}:/PATH_TO/STLIB/python3/src/stlib3"
export PYTHONPATH="${PYTHONPATH}:/PATH_TO/STLIB/python3/src/splib3"

Hope this helps.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by EulalieCoevoet
Comment options

You must be logged in to vote
1 reply
@EulalieCoevoet
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants