Home > Software engineering >  visual studios cant find package i installed through pip
visual studios cant find package i installed through pip

Time:02-05

it says im running python 0.0 AND 3.10strong text

Visual studios is unable to find a package. I am able to run it in cmd using python. I have had this problem before, but can't remember how i fixed it. I think im just using the wrong version of python, if that is the problem then i dont know how to fix it

CodePudding user response:

Check the version in cmd and then if it is something above 3.7 or so you are good to go else reinstall python and if you are on Windows then check the box at bottom of the installation window of python which says "Add pip to path" something like that

Now in the VS Code

Hit Ctrl Shift p to open command palette and in that search for python interpreter and change it to plain one or you may choose

Select Python Interpreter

CodePudding user response:

use the vscode console First of all to check the packages insatalled in python you have to use the pip freeze.

pip freeze

This will help you to find out if the required package which you've installed is on the list or not. If it is not present use the same console for:-

pip install <packageName>

for eg.

pip install django

then check the list agian

  •  Tags:  
  • Related