Click here to Skip to main content
15,914,010 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using Visual Studio Code. I did a pip install of sympy and I'm pretty sure it worked because when I type pip install sympy again I get a message saying "requirement already satisfied". However, when I type import sympy, sympy is underlined and when I hover on it it says "sympy is not accessed by Pylance" and "Import sympy could not be resolved by Pylance". I'm pretty new to this so I have no idea what to do next.

What I have tried:

Googled the error messages that came up but I couldn't find anything that helped.
Posted
Comments
Richard MacCutchan 30-Oct-21 4:05am    
Can you import it if you have a standalone Python invocation, i.e. not in VSCode? In my experience with Python all pip installs go to the correct location in the Python directory, so it is not necessary to modify any system settings.
SAM FRYDMAN 30-Oct-21 10:33am    
How do I do a standalone Python invocation?
Richard MacCutchan 30-Oct-21 10:53am    
Open as command window and type python or python3 to start it. But I have no idea what Pylance is.
SAM FRYDMAN 30-Oct-21 15:54pm    
Thank you. I'll keep trying.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900