-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Clear pythonfinder cache after Python install #3287
Clear pythonfinder cache after Python install #3287
Conversation
Thanks! |
With pipenv, version 2018.11.26 I still see this behaviour:
At first it fails to recognise that Python 3.6.5 is already installed and available via pyenv. And second it then cannot find the installed version and stops the installation. Is this the issue that will be fixed by this commit discussed here? |
Yes! This should now be fixed - are you using |
Yes, I do. I just upgraded to the newest version with
on Mac OS X 10.14.1.
|
Huh, and you're still seeing the problem with that setup? In that case I've no idea - it works for me on a relatively clean Docker container 🤔 |
I also set the environment variable
But pipenv refuses to interoperate with pyenv. |
https://github.com/sarugaku/pythonfinder/pull/51/files#diff-963a50d451b089be9e0d078b9665eb01R91 will introduce a cleaner interface for clearing caches going forward |
notably it also cuts runtimes down to ~1s |
I also get this, but works as expected when reverting to version 2018.7.1. |
The issue
After a new Python version was installed by
pyenv
it was never found, because the old Pythons were cached.The fix
Bust the cache after installing a new Python.
The checklist
news/
directory to describe this fix with the extension.bugfix
,.feature
,.behavior
,.doc
..vendor
. or.trivial
(this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.