Python conda - How to upgrade package not available on anaconda

纵然是瞬间 提交于 2019-12-24 00:37:49

问题


If I am looking at the Anaconda Packages (http://docs.continuum.io/anaconda/pkg-docs), there is a package named "nbconvert" in version 4.0.0. On the github site of nbconvert (https://github.com/jupyter/nbconvert/releases) there is a newer version (i need this one) 4.1.0. Now how to install this version on my machine? If i try to

conda install nbconvert

It will install version 4.0.0. but I need this new one

If I try to search for this package with

anaconda search -t conda nbconvert

It only finds the 4.0.0 version


回答1:


The easiest way is to temporarily replace conda's nbconvert with the latest version of pip.

Here's how you can do that:

conda remove nbconvert
pip install nbconvert

After that you can check the version of nbconvert by typing jupyter nbconvert --version. If everything worked out, you will see 4.1.0.

Note that this is just meant to be a temporary workaround until continuum analytics' developers update the package. Don't forget to pip uninstall and conda install when switching back to conda's version.



来源:https://stackoverflow.com/questions/34174250/python-conda-how-to-upgrade-package-not-available-on-anaconda

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!