Open bitboxer opened 10 years ago
pip is driving me insane...
You are not the only one with that problem :sob:
I'm currently getting:
🐍 Python 🐍
Install Python: 👉
Link Python: 👍
Traceback (most recent call last):
File "/usr/local/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources.py", line 2805, in <module>
"""Get an mro for a type or classic class"""
File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources.py", line 443, in _build_master
# try it without defaults already on sys.path
File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources.py", line 456, in _build_from_requirements
# then copy back to sys.path
File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources.py", line 635, in resolve
new_requirements = dist.requires(req.extras)[::-1]
pkg_resources.DistributionNotFound: pip==1.5.6
Install pip: An Error occured while executing `pip install --user pip`:
Traceback (most recent call last):
File "/usr/local/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources.py", line 2805, in <module>
"""Get an mro for a type or classic class"""
File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources.py", line 443, in _build_master
# try it without defaults already on sys.path
File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources.py", line 456, in _build_from_requirements
# then copy back to sys.path
File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources.py", line 635, in resolve
new_requirements = dist.requires(req.extras)[::-1]
pkg_resources.DistributionNotFound: pip==1.5.6
👎
So: same here :cry:
Mmh, completely removing the homebrew python (brew uninstall python && rm -rf $(brew --prefix)/lib/pythonX.Y/site-packages
for 2.7), reinstalling it ad applying the ~/.pydistutils.cfg
described in https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md#note-on-pip-install---user seem to work for me.
Phew. Thanks for investigating :heart:
Yes, this works. Should we add the pydistutils.cfg during the setup phase? This could be dangerous :flushed:
I would say: No.
So what else could we do for our users? Check for this error and output a hint that helps to fix this?
Yes, I think that would be the best option!
Looks like pip does not like the
--user
argument when updating itself anymore. I am getting this error when using exogenesis:And when I try it on the console and leave out the
--user
, it works. With it, it stops with this message.