Tensorflow operation report error modulenotfounderror: no module named ‘tensorflow. Python. Types’ solution

Running with tensorflow 1.15, the following error occurs:,

terms of settlement:

It is found that the tensorflow estimator installed automatically when installing 1.15.0 is version 2.5.0 (Figure 2)

Uninstall version 2.5: PIP uninstall   tensorflow-estimator

Reinstall version 1.15: CONDA install    tensorflow-estimator==1.15.1   Or pip   install    Tensorflow estimator = = 1.15.1 (I installed it with Canda, but failed to use pip, prompting an error, valueerror: check_ hostname requires server_ Hostname, after searching this error, I need to close the agent, but I rely on the agent to connect to the network but not close…)

Problem solving.

Note: the reason for installing 1.15.1 is that version 1.15.0 is not found. If you want to download the manual installation from the official website, you can only find tensorflow CPU estimator 1.15.1, search results · pypi

  Reference: modulenotfounderror: no module named ‘tensorflow. Python. Types’ – stack overflow

Read More: