IT이야기

pip: 종속성을 무시한 채 강제 설치

cyworld 2022. 3. 18. 21:43
반응형

pip: 종속성을 무시한 채 강제 설치

pip python 패키지를 강제로 설치하여 만족할 수 없는 종속성을 모두 무시하는 방법이 있는가?

(그렇게 하는 것이 얼마나 '잘못'인지 상관없어, 그냥 하면 돼, 어떤 논리와 추리는 제쳐놓고...."

핍은 a를 가지고 있다.--no-dependencies교대시키다그거 써야 돼.

자세한 내용을 보려면 실행pip install -h, 다음 행을 볼 수 있는 위치:

--no-deps, --no-dependencies
                        Ignore package dependencies

설치하려고 할 때librosa으로 포장하다.pip(pip install librosa)), 다음과 같은 오류가 나타났다.

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.

나는 제거하려고 노력했다.llvmlite그렇지만pip uninstall그것을 제거할 수 없었다.그래서 나는 의 능력을 사용했다.ignorepip이 코드로:

pip install librosa --ignore-installed llvmlite

실제로 다음 규칙을 사용하여 고려하지 않을 패키지를 무시하십시오.

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

다음을 시도해 보십시오.

pip install --no-deps <LIB_NAME>

또는

pip install --no-dependencies <LIB_NAME>

또는

pip install --no-deps -r requirements.txt

또는

pip install --no-dependencies -r requirements.txt

참조URL: https://stackoverflow.com/questions/12759761/pip-force-install-ignoring-dependencies

반응형