Python conda-如何升级anaconda上不可用的软件包 [英] Python conda - How to upgrade package not available on anaconda

查看:267
本文介绍了Python conda-如何升级anaconda上不可用的软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我正在查看Anaconda软件包( http://docs.continuum.io/anaconda /pkg-docs ),在版本 4.0.0 中有一个名为"nbconvert"的软件包. 在nbconvert的github站点上( https://github.com/jupyter/nbconvert/releases ) 4.1.0 有一个较新的版本(我需要这个版本).现在如何在我的机器上安装此版本?如果我尝试

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

它将安装版本4.0.0.但是我需要这个新的

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

如果我尝试使用

anaconda search -t conda nbconvert

仅找到4.0.0版本

推荐答案

最简单的方法是用最新版本的pip临时替换conda的nbconvert.

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

之后,您可以通过键入jupyter nbconvert --version来检查nbconvert的版本.如果一切顺利,您将看到4.1.0.

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

请注意,这只是暂时性的解决方法,直到Continuum Analytics的开发人员更新软件包为止.切换回conda的版本时,请不要忘记使用pip uninstallconda install.

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.

这篇关于Python conda-如何升级anaconda上不可用的软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆