Reputation: 37
I work on the python code in VS Code for image processing and i need to use tensorflow. When I want to import tensorflow i get this error:
import tensorflow as tf
E0401:Unable to import 'tensorflow'
I have read ImportError: No module named tensorflow for Visual Studio Code but it is used for working with GPU but I only want to work with CPU.
How can I fix it?
Thanks in advance.
Upvotes: 1
Views: 13598
Reputation: 54
You should create an environment for your python project.
After that, you should install tensorflow
with pip
.
Upvotes: 2