python pip: force install ignoring dependencies

后端 未结 2 797
孤街浪徒
孤街浪徒 2020-12-04 10:03

Is there any way to force install a pip python package ignoring all it\'s dependencies that cannot be satisfied?

(I don\'t care how \"wrong\" it is to do so, I just

2条回答
  •  孤街浪徒
    2020-12-04 10:21

    When I were trying install librosa package with pip (pip install librosa), this error were appeared:

    ERROR: 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.
    

    I tried to remove llvmlite, but pip uninstall could not remove it. So, I used capability of ignore of pip by this code:

    pip install librosa --ignore-installed llvmlite
    

    Indeed, you can use this rule for ignoring a package you don't want to consider:

    pip install {package you want to install} --ignore-installed {installed package you don't want to consider}
    

提交回复
热议问题