python – pip: force install ignoring dependencies
python – pip: force install ignoring dependencies
pip has a --no-dependencies
switch. You should use that.
For more information, run pip install -h
, where youll see this line:
--no-deps, --no-dependencies
Ignore package dependencies
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 dont want to consider:
pip install {package you want to install} --ignore-installed {installed package you dont want to consider}
python – pip: force install ignoring dependencies
Try the following:
pip install --no-deps <LIB_NAME>
or
pip install --no-dependencies <LIB_NAME>
or
pip install --no-deps -r requirements.txt
or
pip install --no-dependencies -r requirements.txt