简体   繁体   中英

New packages installed with pip not recognised by VSCode

i'm having issues with installing packages through pip. Im doing the standard pip3 install "package name" and from what i can see there arent any stand out errors that indicate im doing something wrong, however when i try to import the packages into a python file in VSCode it isnt recognised, any ideas of what could be wrong? Here is a screenshot of an example installation. Thanks in advance. example installation of python package with pip

This problem may be caused by inconsistency between your python interpreter and python package installation.

  1. Use shortcuts "ctrl+shift+P" and type "Python: Select interpreter".
  2. Choose your python interpreter in the list.
  3. Reinstall the package in terminal and try to run your code.

If you are using a virtual environment, make sure the environment is activated and install it using the conda command.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM