[Python] Cannot import tensorflow in vscode

Discussão em 'Python' iniciado por Stack, Dezembro 21, 2024.

  1. Stack

    Stack Membro Participativo

    [​IMG] I have installed tensorflow in a virtual environment and can import Tensorflow in jupyter notebook or terminal. I am now learning to use VScode, so I try to launch it in the jupyter notebook within the VScode, but Tensorflow cannot be imported.

    It shows ModuleNotFoundError: No module named 'tensorflow', but I have installed it and it can be used in the terminal or jupyternotebook.

    I also tried to define the path of the python interpreter, but it did not work. Could someone help me out? Tons of thanks.

    Continue reading...

Compartilhe esta Página