In Python, import XXX does not report an error, but in IPython (Jupiter notebook)

When importing Sklearn from Jupyter Notebook, the following error is reported

But I have installed it before; It does not report errors on the Python command line. Then Baidu checked the data, but did not find a similar situation. I print the path in Python and in IPython. I print the path in Python and I print the path in IPython.

'D:\\python\\Anaconda3\\envs\\v2\\python35.zip',

'D:\\python\\Anaconda3\\envs\\v2\\DLLs',

'D:\\python\\Anaconda3\\envs\\v2\\lib',

'D:\\python\\Anaconda3\\envs\\v2',

'C:\\Users\\mtl\\AppData\\Roaming\\Python\\Python35\\site-packages',

'D:\\python\\Anaconda3\\envs\\v2\\lib\\site-packages'

Print out the path in IPython as follows:

'D:\\python\\Anaconda3\\envs\\v2\\python35.zip', 
'D:\\python\\Anaconda3\\envs\\v2\\DLLs', 
'D:\\python\\Anaconda3\\envs\\v2\\lib', 
'D:\\python\\Anaconda3\\envs\\v2', 
'C:\\Users\\mtl\\AppData\\Roaming\\Python\\Python35\\site-packages', 
'D:\\python\\Anaconda3\\envs\\v2\\lib\\site-packages', 
'D:\\python\\Anaconda3\\envs\\v2\\lib\\site-packages\\IPython\\extensions', 
'C:\\Users\\mtl\\.ipython'

C:\\Users\ MTL \\.ipython: C:\\Users\ MTL \\.ipython: C:\\Users\\ MTL \\.ipython: C:\\Users\\ MTL \\
Summary: I think because the last folder is empty, the previous files will be flushed out, but I check the information: when looking for the module (model), it will follow the path to find, if found, it will jump out. This interpretation is in conflict here, but also hope to understand this part of the god together to resolve


Read More: