Loading...
Loading...
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed.pip can't install the package because it conflicts with the version requirements of another already-installed package. Two packages need incompatible versions of a shared dependency.
The cleanest fix is to start fresh with a new virtual environment.
# Create a new clean environment
python - m venv venv_clean
source venv_clean / bin / activate # or venv_clean\Scripts\activate on Windows
# Install only what you need
pip install - r requirements.txtpip-tools generates a consistent, conflict-free set of pinned dependencies.
pip install pip - tools
# Create requirements.in with your direct dependencies
echo "requests>=2.28" > requirements.in
echo "flask>=2.0" >> requirements.in
# Compile a conflict - free requirements.txt
pip - compile requirements.in
# Install the resolved dependencies
pip - syncAllow pip to upgrade conflicting packages to compatible versions.
pip install--upgrade package - name