简体   繁体   中英

Unable to import seaborn and sklearn

I can't load seaborn and sklearn despite having the packages installed. I already restarted the kernel. I'm importing on spyder v4.2.4

在此处输入图像描述

When I try to import seaborn and sklearn, the console tells me "no module named 'seaborn'

在此处输入图像描述

Please advise me on how I can check for the potential issue and resolve. Thanks: :)

Did you check that Anaconda prompt and your IDE are using the same python libraries?

You can check Anaconda like this

(base) C:\Users\username>where python
C:\ProgramData\Anaconda3\python.exe

Check some module that you can install by running .__file__ to see where it's being loaded from

os.__file__
Out[5]: 'C:\\ProgramData\\Anaconda3\\lib\\os.py'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM