I'm running these commands building a docker from code in a dockerfile, but I think this would be a problem with regular pip install too.
The line
RUN git clone https://github.com/<my-github-name/quail.git && cd quail/ && git fetch origin && git branch --track <local-branch-name> origin/<remote-branch-name> && git checkout <new-local-branch-name> && pip install -e .
throws the error
Cannot uninstall 'ply'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
I'm aware of this error with pip>8.0 and why pip adopted this behavior, but I'm not sure how I can get around it. In dockerfiles, I usually do so with pip's --ignore-installed
flag, but ply
is a dependency of a dependency of the quail
package I'm installing.
I also need to make this docker portable to others who may and may not already have ply
installed locally.
Thanks
edit: ended up using the ugly solution of downgrading pip RUN pip install pip==8.0.1
for the install and immediately re-upgrading to 10.0.1 afterward. Definitely still open to cleaner fixes!