PatrickM
PatrickM

Reputation: 15

pip list command shows tensorflow as installed, but it cannot be imported

I know that this is (sort of) a duplicate question, however the original has no activity and remains unanswered.

My problem is that I have installed tensorflow for python 3.7.5 and upon installation (and reinstallation, including reinstallation without cache (pip install --no-cache-dir tensorflow)) it showed as successfuly installed every time. When I use the pip list command in cmd it also shows that tensorflow and all the modules it comes with are installed.

However, when I open IDLE and type import tensorflow it gives me the ModuleNotFoundError.

Upvotes: 0

Views: 134

Answers (1)

Radhika soni
Radhika soni

Reputation: 143

Try to create a virtual environment for TensorFlow and then activate it. I hope it helps.

Upvotes: 2

Related Questions