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

Use pip install --force-reinstall flag #806

Merged
merged 1 commit into from
May 12, 2019

Conversation

pv
Copy link
Collaborator

@pv pv commented Apr 5, 2019

Under some conditions, pip appears to wrongly think the packages is
available in the environment, so tell it to install it always.

Closes #805

In the problematic case asv run -v says

·· Running 'xxx/python -mpip install /home/pauli/tmp/xxx/requests/.asv/env/a80b4bcff004e7d21aafa78a5932418b/asv-build-cache/9742da7f91f595796a412a8150aacc00191be039/requests-2.21.0-py2.py3-none-any.whl'
   OUTPUT -------->
   Requirement already satisfied: requests==2.21.0 from file:///xxx/requests/.asv/env/a80b4bcff004e7d21aafa78a5932418b/asv-build-cache/9742da7f91f595796a412a8150aacc00191be039/requests-2.21.0-py2.py3-none-any.whl in xxx/requests/.asv/env/a80b4bcff004e7d21aafa78a5932418b/project (2.21.0)

But I don't know precisely why this occurs (hence no test). However, adding the --force-reinstall flag appears to fix it.

Under some conditions, pip appears to wrongly think the packages is
available in the environment, so tell it to install it always.

Closes airspeed-velocity#805
@yashasvi-goel
Copy link

I'm facing a similar issue.
I've tried this solution(#805 #806 ). It isn't solving the issue for me. I've tried updating my pip as well.
I've double checked my asv.conf.json. Is there any other solution to fix this issue.

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.

'asv run' fails on import
2 participants