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
Confirm you have downloaded python correctly:
python --version
python3 --version
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.