-
-
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
Virtualenv needs to be re-created for minor Pyhton updates on Homebrew (a.k.a please use venv!) #3951
Comments
I found issue #15 now. But while that there is worded like a feature request, what I submitted is a significant annoyance, if not bug, so I think deserves to stay open until some solution is found. |
fyi, I think this comment expresses the same issue as you effectively? |
A little similar perhaps, but not the same. dhouck there is talking about major Python upgrades, such as 3.6 to 3.7. I'm talking about minor Python patchlevel updates, such as |
All my envs were broken again by Homebrew update to Python 3.7.5 :( This time I used a hack to re-create Pipenv's environments by actually using python's own
(Following that you still need to |
all of mine are broken right now. but I don't have any virtualenvs in ~/, I install them locally to the folder they're started in, and virtualenv is still broken |
This is a masssssssive annoyance by the way. As a python dev , I've usually got 10-15 virtualenvs on the go at any time, and about every couple of months something in the dependency chain will upgrade python and blam, everythings broken. |
Even though it's a nice interface, I gave up on pipenv because venv is the officially supported virtual environment method upstream. While I was at it, I stopped using the Homebrew python installations in favor of the official python distributions for OSX. I recreate the convenient pipenv shell commands via bash aliases like....
|
I believe this is no longer an issue after virtualenv 20. |
Issue description
Python versions 3.3+ bundle a
venv
module for creating virtualenvs (python -m venv
). The virtualenvs created byvenv
are tidier and supported by Python upstream itself.There is also a major issue with
virtualenv
on macOS using Homebrew: it creates symlinks specific to the currently installed package version. This means every time Homebrew updates Python (including minor version updates), I need to recreate all virtualenvs. This gets annoying quickly.venv
virtualenvs, however, are not affected by this issue.Expected result
Virtualenv created with
venv
:Actual result + Steps to replicate
This is what it looks like to use a broken virtualenv:
$ pipenv --support
Pipenv version:
'2018.11.26'
Pipenv location:
'/usr/local/lib/python3.7/site-packages/pipenv'
Python location:
'/usr/local/opt/python/bin/python3.7'
Python installations found:
3.7.4
:/Users/marti.raudsepp/.local/share/virtualenvs/envtest-pJJWjZNx/bin/python3
3.7.4
:/usr/local/bin/python3
3.7.4
:/usr/local/bin/python3.7m
3.6.1
:/usr/local/bin/pypy3
2.7.16
:/usr/local/bin/python
2.7.16
:/usr/local/bin/pythonw
2.7.10
:/usr/bin/python
2.7.10
:/usr/bin/pythonw
2.7.10
:/usr/bin/python2.7
PEP 508 Information:
The text was updated successfully, but these errors were encountered: