Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install tensorflow and tensorflow==2.3.1 because these package versions have conflicting dependencies. #9811

Open
1 task done
pifparfait opened this issue Apr 16, 2021 · 1 comment
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior

Comments

@pifparfait
Copy link

Description

I need to install tensorflow 2.3.1 but I got his message. Any help?
!pip install -U tensorflow==2.3.1
pip3 install -U tensorflow install -U tensorflow==2.3.1
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: tensorflow in /home/pi/.local/lib/python3.7/site-packages (0.11.0)
Collecting install
Using cached https://www.piwheels.org/simple/install/install-1.3.4-py3-none-any.whl (3.1 kB)
ERROR: Cannot install tensorflow and tensorflow==2.3.1 because these package versions have conflicting dependencies.

The conflict is caused by:
The user requested tensorflow
The user requested tensorflow==2.3.1

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

Expected behavior

No response

pip version

(21.0.1)

Python version

Python 3.7.3

OS

MAC

How to Reproduce

pip3 install -U tensorflow install -U tensorflow==2.3.1

Output

Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: tensorflow in /home/pi/.local/lib/python3.7/site-packages (0.11.0)
Collecting install
  Using cached https://www.piwheels.org/simple/install/install-1.3.4-py3-none-any.whl (3.1 kB)
ERROR: Cannot install tensorflow and tensorflow==2.3.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested tensorflow
    The user requested tensorflow==2.3.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

Code of Conduct

@pifparfait pifparfait added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Apr 16, 2021
@webknjaz
Copy link
Member

@pifparfait have you checked if https://www.piwheels.org/simple/install/install-1.3.4-py3-none-any.whl has python_requires matching your current Python interpreter? This may be similar to #11321.

pip3 install -U tensorflow install -U tensorflow==2.3.1

This reproducer command is weird. You probably didn't mean to include that second install -U — with that in your command, pip attempts to install a package called install (which is also visible in your log).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants