Search code examples
pythonmodulepippycharmsympy

"No module named 'sympy'" Error. Problem occurs after installation


enter image description hereI am new to Python. I am trying to use the Sympy package. I am running Python 3.11 in Pycharm I am using Windows 10.

It displays:

ModuleNotFoundError: No module named 'sympy'

I ran pip install sympy, it installed it. And when I try reinstalling it, it displays:

Requirement already satisfied: sympy in c:\users\jrk\appdata\local\programs\python\python311\lib\site-packages (1.11.1)

Requirement already satisfied: mpmath>=0.19 in c:\users\jrk\appdata\local\programs\python\python311\lib\site-packages (from sympy) (1.2.1)

I tried going through this guide https://bobbyhadz.com/blog/python-no-module-named-sympy but it did not work.

I tried uninstalling it and reinstalling it both with pip and mpip it unfortunately didnt work

at the top you can see which interpreter i am using

I can see that there is a file called sympy in my downloads folder, maybe that has to be relocated, but where to?


Solution

  • I found the solution. I do not know why it worked. But i moved the project from the local file on my computer to the server we use in our company, and then it worked