问题原因
jupyter notebook 引入第三方库的路径与pip安装第三方库的路径不同
解决办法
安装第三方库有三种方法:
1、在cmd中输入pip install命令即可安装,但是安装位置不同,所以安装后记得将电脑文件夹:python\lib\site-packages中的安装包复制粘贴到anaconda\lib\site-packages中
2、在conda prompt中输入命令,但是不能直接输入命令:conda install,每次要进入官网找对应安装包的命令;而且如果出现
ProxyError: Conda cannot proceed due to an error in your proxy configuration.
Check for typos and other configuration errors in any '.netrc' file in your home directory,
any environment variables ending in '_PROXY', and any other system-wide proxy configuration settings.
要进IE浏览器关掉Internet代理。一定是IE浏览器。
3、在conda prompt中输入pip install命令,但是我安装的时候出现了:
Script file 'D:\Anaconda\Scripts\pip-script.py' is not present.
可能是要easy-install pip,还没有验证。