PIP conflicts ERROR: Error while checking for conflicts when installing packages with PIP #12157
Closed
1 task done
Labels
resolution: duplicate
Duplicate of an existing issue/PR
Description
Hi, I'm facing the below-mentioned conflicts error when I'm trying to install the python packages using PIP module.
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see #5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
ERROR: Error while checking for conflicts. Please file an issue on pip's issue tracker: https://github.com/pypa/pip/issues/new
Traceback (most recent call last):
File "/home/hadoop/.local/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 575, in _determine_conflicts
return check_install_conflicts(to_install)
File "/home/hadoop/.local/lib/python3.7/site-packages/pip/_internal/operations/check.py", line 108, in check_install_conflicts
would_be_installed = _simulate_installation_of(to_install, package_set)
File "/home/hadoop/.local/lib/python3.7/site-packages/pip/_internal/operations/check.py", line 131, in _simulate_installation_of
dist = abstract_dist.get_metadata_distribution()
File "/home/hadoop/.local/lib/python3.7/site-packages/pip/_internal/distributions/wheel.py", line 23, in get_metadata_distribution
assert self.req.local_file_path, "Set as part of preparation during download"
AssertionError: Set as part of preparation during download
WARNING: The script chardetect is installed in '/home/hadoop/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
ERROR: Exception:
Traceback (most recent call last):
File "/home/hadoop/.local/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
File "/home/hadoop/.local/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 248, in wrapper
return func(self, options, args)
File "/home/hadoop/.local/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 460, in run
pycompile=options.compile,
File "/home/hadoop/.local/lib/python3.7/site-packages/pip/_internal/req/init.py", line 79, in install_given_reqs
pycompile=pycompile,
File "/home/hadoop/.local/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 805, in install
assert self.local_file_path
AssertionError
Command exiting with ret '2'
Expected behavior
All the packages are mentioned in the requirements.txt file should get installed
pip version
pip-23.2-py3-none-any.whl
Python version
3.8
OS
Linux/UNIX
How to Reproduce
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: