【发布时间】:2018-02-26 11:15:15
【问题描述】:
我正在尝试将我的 jupyter_client 更新到 5.2.2 以运行我的新 jupyter notebook。我使用conda update jupyter_client jupyter_core 做到了这一点,但在我更新它们后它不起作用,因为我发现有两个版本的 jupyter_client 和 jupyter_core。如何更新 py36_0 中的两个包,或者如何删除 py36_0 中的包,以便 jupyter 可以在我的 pip 安装的 jupyter_client 和 jupyter_core 中运行?
conda list jupyter
>jupyter 1.0.0 <pip>
>jupyter-client 5.2.2 <pip>
>jupyter_console 5.2.0 <pip>
>jupyter-core 4.4.0 <pip>
>jupyter-client 5.1.0 py36_0
>jupyter-core 4.3.0 py36_0
【问题讨论】:
-
你试过卸载pip安装的版本吗? stackoverflow.com/questions/33412974/… pip 和 conda 都是包管理器,虽然可以一起使用,但我认为如果/当包可以由其中任何一个管理时,最好只使用一个或另一个。我默认使用 conda,只有在无法通过 conda 获取包时才使用 pip。
-
@emmet02 II卸载pip包时,会卸载5.2.2版本的jupyter_client,而不是py36_0包