python学习_Jupyter Notebook_为什么安装了第三方库,import的时候仍然显示No module?

python学习_Jupyter Notebook_为什么安装了第三方库,import的时候仍然显示No module?

  • 问题原因
  • 解决办法

问题原因

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代理

3、conda prompt,用pip install,但是出现了:

Script file 'D:\Anaconda\Scripts\pip-script.py' is not present.

可能是要easy-install pip

你可能感兴趣的:(python)