1. Install directly under the window:
pip install tensorflow
There is no problem with the installation. The system downloaded the highest version by itself, version 2 or higher, and then ImportError: DLL load failed: The specified module could not be found when importing the module.
(Ps: The error report was found on the Internet, but the error content is similar)
Solution: I found a method on the Internet to say that there is a problem with the tensorflow version. The version above 2 is too high and incompatible, so I changed the tensorflow version and reinstalled
pip install tensorflow==1.4
Then it’s fine, (others), mine still has problems,
D:\ruanjiananzhuang\Anconda\envs\py36\python.exe F:/code/code/PychramCode/MachineCode/02Code/test.py
D:\ruanjiananzhuang\Anconda\envs\py36\lib\site-packages\tensorflow\python\framework\dtypes.py:469: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
D:\ruanjiananzhuang\Anconda\envs\py36\lib\site-packages\tensorflow\python\framework\dtypes.py:470: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
D:\ruanjiananzhuang\Anconda\envs\py36\lib\site-packages\tensorflow\python\framework\dtypes.py:471: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
D:\ruanjiananzhuang\Anconda\envs\py36\lib\site-packages\tensorflow\python\framework\dtypes.py:472: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
D:\ruanjiananzhuang\Anconda\envs\py36\lib\site-packages\tensorflow\python\framework\dtypes.py:473: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
D:\ruanjiananzhuang\Anconda\envs\py36\lib\site-packages\tensorflow\python\framework\dtypes.py:476: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
The version of numpy is too high. It will be fine after lowering it. The previous version was version 1.17, now version 1.16