How to Solve PIP3 install oct2py error

use sudo pip3 install oct2py error: ERROR: Cannot uninstall ‘pexpect’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Solution: sudo pip3 install oct2py –ignore-installed pexpect
Install successfuly!

Read More: