Search code examples
python-3.xpipoct2py

Installed the oct2py package but is not recognized when imported


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?


Solution

  • Change your environment variable from 'C:\Program Files\Python39' to this one 'C:\Users\YOU\AppData\Local\Programs\Python\Python39'.