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

Brew install/upgrade dvc overwrites current version of python3 #4198

Closed
philipperemy opened this issue Jul 13, 2020 · 4 comments
Closed

Brew install/upgrade dvc overwrites current version of python3 #4198

philipperemy opened this issue Jul 13, 2020 · 4 comments
Labels
awaiting response we are waiting for your reply, please respond! :)

Comments

@philipperemy
Copy link

I'm running on MacOS with python3.7.

When running brew install dvc or even brew upgrade dvc, my python was changed to python3.8 and it broke all my other virtual environments.

Not really a bug here but should be more careful about brew and forcing a python version.

Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/[email protected]/libexec/bin

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.8/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/[email protected]/libexec/bin

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.8/site-packages
@triage-new-issues triage-new-issues bot added the triage Needs to be triaged label Jul 13, 2020
@philipperemy
Copy link
Author

So please if you are suggesting for upgrade, do not force the update of python3! :)

@efiop
Copy link
Contributor

efiop commented Jul 13, 2020

@philipperemy IIRC homebrew guys updated it to 3.8 for us: Homebrew/homebrew-core@bc452dc because they are migrating to 3.8 by default. Looking through the formulas, all of them depend on 3.8, so this is a homebrew policy that we can't really do much about 🙁 If you need very specific python version, I would suggest using something like pyenv. python brew package will be upgraded along with any package that depends on it, not only dvc.

@efiop efiop added the awaiting response we are waiting for your reply, please respond! :) label Jul 13, 2020
@triage-new-issues triage-new-issues bot removed the triage Needs to be triaged label Jul 13, 2020
@philipperemy
Copy link
Author

Oh I see then nothing to do... Just to keep in mind!

@pmrowla
Copy link
Contributor

pmrowla commented Jul 13, 2020

For future reference, this is because homebrew changed their default python version from 3.7 to 3.8 last week (and is unrelated to the DVC brew package)
Homebrew/homebrew-core#54912

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response we are waiting for your reply, please respond! :)
Projects
None yet
Development

No branches or pull requests

3 participants