Python 无法使用pip安装程序包

Python 无法使用pip安装程序包,python,pip,jupyter-notebook,anaconda,conda,Python,Pip,Jupyter Notebook,Anaconda,Conda,我刚开始使用pip安装python包,现在遇到了麻烦。我正在尝试使用pip安装库“mlfinlab”,并在Anaconda/Jupyter笔记本中运行它。当我在终端中键入“pip install mlfinlab”时,我在末尾收到以下消息: Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it

我刚开始使用pip安装python包,现在遇到了麻烦。我正在尝试使用pip安装库“mlfinlab”,并在Anaconda/Jupyter笔记本中运行它。当我在终端中键入“pip install mlfinlab”时,我在末尾收到以下消息:

Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
我不确定那个错误消息是否相关,但我想无论如何我都会包含它

我曾试图运行一个Jupyter笔记本并导入mlfinlab,但得到的消息是没有该名称的模块

我已经试过跑步:

import sys
print(sys.executable)

在Jupyter笔记本中,然后将其输出与“-m pip install mlfinlab”一起输入到我的命令行中,这似乎也不起作用

pip可能有问题,请尝试使用以下工具升级:

pip安装--升级pip


我最终升级了我的llvmlite包,这似乎起到了作用。没有尝试其他已发布的解决方案,但它可能也能工作。

很抱歉,我升级了llvmlite软件包,该软件包工作正常,没有尝试您的答案。请注意如何使用pip,请查看。