skip to Main Content

Despite im used to program stuff, im new in Python so i decide to learn by myself.
So, i install VS code and python. At the moment i tryied to use stuff like tensorflow, is showing an error saying that my imports are missing.

I’ve already tryed to install everything again, search for a solution online and nothing worked.

If someone knows anything about how to fix this i’d be greatfull.

2

Answers


  1. Confirm you have downloaded python correctly:

    • Open terminal
    • Run python --version
      • (if that doesn’t work try python3 --version
    Login or Signup to reply.
  2. Whether there are multiple versions of python in your environment, which will make the pip installed in one version of python instead of the python you are using.

    Use shortcuts "Ctrl+shift+P" and type "Python: Select Interpreter" to choose the correct python. Then use pip install packagename to reinstall the package which you need.

    Generally, we recommend people new to python to use the conda virtual environment.

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search