Skip to content

Force pip version 19 #1647

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

Merged
merged 1 commit into from
Dec 1, 2020
Merged

Force pip version 19 #1647

merged 1 commit into from
Dec 1, 2020

Conversation

vishalbollu
Copy link
Contributor

Conda installs pip 20.* by default which uses the latest resolver. The new pip dependency resolver is more strict. For example:

ERROR: Cannot install keras==2.4.3, scikit-image==0.17.2, scikit-learn==0.23.2, scipy==1.5.2, statsmodels==0.12.0 and tensorflow-cpu==2.3.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested scipy==1.5.2
    keras 2.4.3 depends on scipy>=0.14
    scikit-image 0.17.2 depends on scipy>=1.0.1
    scikit-learn 0.23.2 depends on scipy>=0.19.1
    statsmodels 0.12.0 depends on scipy>=1.1
    tensorflow-cpu 2.3.0 depends on scipy==1.4.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

Pip 19 is more permissive. Force the default pip version to use version 19 for now.


checklist:

  • run make test and make lint
  • test manually (i.e. build/push all images, restart operator, and re-deploy APIs)
  • update examples
  • update docs and add any new files to summary.md (view in gitbook after merging)
  • cherry-pick into release branches if applicable
  • alert the dev team if the dev environment changed

@vishalbollu vishalbollu requested a review from deliahu December 1, 2020 22:16
@vishalbollu vishalbollu merged commit cea030e into master Dec 1, 2020
@vishalbollu vishalbollu deleted the freeze-pip-version branch December 1, 2020 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants