Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Uninstall typing before running pip again (#4161)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkgr authored Apr 28, 2020
1 parent 0fe2839 commit b0c7ac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ install :
python setup.py install_egg_info
# Install allennlp as editable and all dependencies except apex since that requires torch to already be installed.
grep -Ev 'NVIDIA/apex\.git' dev-requirements.txt | pip install --upgrade --upgrade-strategy eager -e . -r /dev/stdin
# Now install apex.
grep -E 'NVIDIA/apex\.git' dev-requirements.txt | pip install --upgrade -r /dev/stdin
# Another workaround: Make sure typing isn't installed
pip freeze | grep "^typing=" > /dev/null && pip uninstall -y typing
# Now install apex.
grep -E 'NVIDIA/apex\.git' dev-requirements.txt | pip install --upgrade -r /dev/stdin

#
# Documention helpers.
Expand Down

0 comments on commit b0c7ac7

Please sign in to comment.