pip install nbextensions插件报错:ReadTimeoutError解决方法
报错描述
今天再给Jupyter Notebook安装jupyter-contrib-nbextensions这个插件时,使用pip install报错,一大片姨妈红,报错信息如下:12raise ReadTimeoutError(self._pool, None, 'Read timed out.')pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
解决方法
把原来pip install xxx
修改为pip --default-timeout=100 install xxx
|
|
安装后提示:1launchpadlib 1.10.6 requires testresources, which is not installed.
继续pip install launchpadlib即可。
然后,执行下面命令用于安装javascript和css文件1jupyter contrib nbextension install --user
最后,再次Jupyter notebook打开即可看到nbextensions插件。
———-后续
在Nbextensions界面中,我选择了autopep8这个选项,第二天打开jupyter notebook时,又提示需要安装autopep8,于是再次pip安装。1sudo python3.5 -m pip install autopep8
顺利完成~