Neil
Neil

Reputation: 1938

PyCharm reports import errors with TensorFlow 2

Since I upgraded to TensorFlow 2, PyCharm is displaying import warnings and errors for many TensorFlow modules and classes. For example, if I use the quickstart example I get:

enter image description here

The code runs fine, so these imports are valid, but PyCharm does not think that they are.

Does anyone know how to resolve this? I didn't experience import issues with TensorFlow 1.14.

Upvotes: 0

Views: 49

Answers (1)

Neil
Neil

Reputation: 1938

As @PavelKarateev mentions in the comments, the latest EAP version of PyCharm (2019.3 EAP) solves this.

Upvotes: 1

Related Questions