问题
I have just installed the oct2py python package using the following command on my Windows:
pip install oct2py
However, whenever I try to import the package oct2py in my python script, I get the error:
No module named "oct2py"
What is it that is making me have this error?
回答1:
Change your environment variable from 'C:\Program Files\Python39' to this one 'C:\Users\YOU\AppData\Local\Programs\Python\Python39'.
来源:https://stackoverflow.com/questions/65773291/installed-the-oct2py-package-but-is-not-recognized-when-imported