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

istallation issue with easy install and pip #1746

Closed
Hussein1147 opened this issue Apr 23, 2014 · 9 comments
Closed

istallation issue with easy install and pip #1746

Hussein1147 opened this issue Apr 23, 2014 · 9 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@Hussein1147
Copy link

hello i am trying to upgrade pip with easy_install but it keeps on throwing this error:
easy_install pip
Traceback (most recent call last):
File "/Users/djibrilkeita/bin/easy_install", line 5, in
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
pkg_resources.DistributionNotFound: distribute==0.6.49

i have removed all easy_install in usr/local/bin and usr/bin but it still does not work

@piotr-dobrogost
Copy link

Take a look at http://stackoverflow.com/questions/19400370/

@Ivoz
Copy link
Contributor

Ivoz commented Apr 23, 2014

Install pip by running get-pip.py, then run

$ pip uninstall -y distribute
$ pip uninstall -y setuptools
$ pip install setuptools

@Hussein1147
Copy link
Author

i have tried your first suggestion and i get the same
.DistributionNotFound: pip==1.5.4 for pip this time. it appears that both
pip and easy_install are broken

On Wed, Apr 23, 2014 at 5:03 AM, Matt Iversen notifications@github.comwrote:

Install pip by running get-pip.pyhttps://raw.github.com/pypa/pip/master/contrib/get-pip.py,
then run

$ pip uninstall -y distribute
$ pip uninstall -y setuptools
$ pip install setuptools


Reply to this email directly or view it on GitHubhttps://github.com//issues/1746#issuecomment-41139286
.

I AM A TITAN

@Ivoz
Copy link
Contributor

Ivoz commented Apr 23, 2014

Could you ll what's in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/

It seems you have an old distribute / setuptools that's being incredibly uncooperative and generally not nice and needs to be cleaned up

@Hussein1147
Copy link
Author

Ok, her is the ls of the folder:
CoreGraphics
OpenSSL
PyObjC
PyObjC.pth
PyRSS2Gen-1.0.0-py2.7.egg-info
PyRSS2Gen.py
PyRSS2Gen.pyc
Twisted-12.2.0-py2.7.egg-info
altgraph
altgraph-0.10.1-py2.7.egg-info
bdist_mpkg
bdist_mpkg-0.4.4-py2.7.egg-info
bonjour
bonjour_py-0.3-py2.7.egg-info
dateutil
easy_install.py
easy_install.pyc
macholib
macholib-1.5-py2.7.egg-info
matplotlib
matplotlib-1.1.1-py2.7.egg-info
modulegraph
modulegraph-0.10.1-py2.7.egg-info
mpl_toolkits
numpy
numpy-1.6.2-py2.7.egg-info
pkg_resources.py.OLD.1398239028.39
pkg_resources.pyc
py2app
py2app-0.7.1-py2.7.egg-info
pyOpenSSL-0.13-py2.7.egg-info
pylab.py
pylab.pyc
python_dateutil-1.5-py2.7.egg-info
pytz
pytz-2012d-py2.7.egg-info
scipy
scipy-0.11.0-py2.7.egg-info
setuptools-0.6c12dev_r88846-py2.7.egg-info
setuptools-0.6c12dev_r88846-py2.7.egg-info.OLD.1398239028.39
setuptools.OLD.1398239028.39
site.py.OLD.1398239028.39
site.pyc
site.pyo
twisted
xattr
xattr-0.6.4-py2.7.egg-info
zope
zope.interface-3.8.0-py2.7.egg-info

so should i delete the setuptools?

On Wed, Apr 23, 2014 at 5:16 AM, Matt Iversen notifications@github.comwrote:

Could you ll what's in
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/

It seems you have an old distribute / setuptools that's being incredibly
uncooperative and generally not nice and needs to be cleaned up


Reply to this email directly or view it on GitHubhttps://github.com//issues/1746#issuecomment-41140493
.

I AM A TITAN

@Hussein1147
Copy link
Author

so i hav removed the setuptools by doing rm -fr
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools*

but when i run pip uninstall -y distribute i get :
Traceback (most recent call last):
File "//Users/djibrilkeita/bin/pip", line 5, in
from pkg_resources import load_entry_point
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py",
line 2603, in
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py",
line 666, in require
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py",
line 565, in resolve
pkg_resources.DistributionNotFound: pip==1.5

On Wed, Apr 23, 2014 at 12:34 PM, Djibril Keita djibrilhms@gmail.comwrote:

Ok, her is the ls of the folder:
CoreGraphics
OpenSSL
PyObjC
PyObjC.pth
PyRSS2Gen-1.0.0-py2.7.egg-info
PyRSS2Gen.py
PyRSS2Gen.pyc
Twisted-12.2.0-py2.7.egg-info
altgraph
altgraph-0.10.1-py2.7.egg-info
bdist_mpkg
bdist_mpkg-0.4.4-py2.7.egg-info
bonjour
bonjour_py-0.3-py2.7.egg-info
dateutil
easy_install.py
easy_install.pyc
macholib
macholib-1.5-py2.7.egg-info
matplotlib
matplotlib-1.1.1-py2.7.egg-info
modulegraph
modulegraph-0.10.1-py2.7.egg-info
mpl_toolkits
numpy
numpy-1.6.2-py2.7.egg-info
pkg_resources.py.OLD.1398239028.39
pkg_resources.pyc
py2app
py2app-0.7.1-py2.7.egg-info
pyOpenSSL-0.13-py2.7.egg-info
pylab.py
pylab.pyc
python_dateutil-1.5-py2.7.egg-info
pytz
pytz-2012d-py2.7.egg-info
scipy
scipy-0.11.0-py2.7.egg-info
setuptools-0.6c12dev_r88846-py2.7.egg-info
setuptools-0.6c12dev_r88846-py2.7.egg-info.OLD.1398239028.39
setuptools.OLD.1398239028.39
site.py.OLD.1398239028.39
site.pyc
site.pyo
twisted
xattr
xattr-0.6.4-py2.7.egg-info
zope
zope.interface-3.8.0-py2.7.egg-info

so should i delete the setuptools?

On Wed, Apr 23, 2014 at 5:16 AM, Matt Iversen notifications@github.comwrote:

Could you ll what's in
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/

It seems you have an old distribute / setuptools that's being incredibly
uncooperative and generally not nice and needs to be cleaned up


Reply to this email directly or view it on GitHubhttps://github.com//issues/1746#issuecomment-41140493
.

I AM A TITAN

I AM A TITAN

@Hussein1147
Copy link
Author

UPDATE: here is the folder /Users/djibrilkeita/bin
rwxr-xr-x 13 djibrilkeita staff 442 Apr 23 12:48 .
drwxr-xr-x+ 148 djibrilkeita staff 5032 Apr 23 12:48 ..
-rw-r--r--@ 1 djibrilkeita staff 6148 Jan 10 13:54 .DS_Store
-rwxr-xr-x 1 root staff 316 Apr 23 00:28 django-admin
-rwxr-xr-x 1 root staff 323 Apr 23 04:20 easy_install
-rwxr-xr-x 1 root staff 331 Apr 23 04:20 easy_install-2.7
-rwxr-xr-x 1 root staff 54143 Mar 18 00:27 git-completion.bash
lrwxr-xr-x 1 djibrilkeita staff 50 Mar 17 20:43 mate ->
/Applications/TextMate.app/Contents/Resources/mate
-rwxr-xr-x 1 djibrilkeita staff 235 Apr 23 12:48 pip
-rwxr-xr-x 1 djibrilkeita staff 249 Nov 6 00:11 pip-2.7
-rwxr-xr-x 1 root staff 237 Jan 10 13:36 pip2
-rwxr-xr-x 1 root staff 241 Jan 10 13:36 pip2.7
lrwxr-xr-x 1 djibrilkeita staff 64 Mar 17 20:12 subl ->
/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl

is it normal that there are many version of pip and easy_install?

On Wed, Apr 23, 2014 at 12:50 PM, Djibril Keita djibrilhms@gmail.comwrote:

so i hav removed the setuptools by doing rm -fr
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools*

but when i run pip uninstall -y distribute i get :
Traceback (most recent call last):
File "//Users/djibrilkeita/bin/pip", line 5, in
from pkg_resources import load_entry_point
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py",
line 2603, in
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py",
line 666, in require
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py",
line 565, in resolve
pkg_resources.DistributionNotFound: pip==1.5

On Wed, Apr 23, 2014 at 12:34 PM, Djibril Keita djibrilhms@gmail.comwrote:

Ok, her is the ls of the folder:
CoreGraphics
OpenSSL
PyObjC
PyObjC.pth
PyRSS2Gen-1.0.0-py2.7.egg-info
PyRSS2Gen.py
PyRSS2Gen.pyc
Twisted-12.2.0-py2.7.egg-info
altgraph
altgraph-0.10.1-py2.7.egg-info
bdist_mpkg
bdist_mpkg-0.4.4-py2.7.egg-info
bonjour
bonjour_py-0.3-py2.7.egg-info
dateutil
easy_install.py
easy_install.pyc
macholib
macholib-1.5-py2.7.egg-info
matplotlib
matplotlib-1.1.1-py2.7.egg-info
modulegraph
modulegraph-0.10.1-py2.7.egg-info
mpl_toolkits
numpy
numpy-1.6.2-py2.7.egg-info
pkg_resources.py.OLD.1398239028.39
pkg_resources.pyc
py2app
py2app-0.7.1-py2.7.egg-info
pyOpenSSL-0.13-py2.7.egg-info
pylab.py
pylab.pyc
python_dateutil-1.5-py2.7.egg-info
pytz
pytz-2012d-py2.7.egg-info
scipy
scipy-0.11.0-py2.7.egg-info
setuptools-0.6c12dev_r88846-py2.7.egg-info
setuptools-0.6c12dev_r88846-py2.7.egg-info.OLD.1398239028.39
setuptools.OLD.1398239028.39
site.py.OLD.1398239028.39
site.pyc
site.pyo
twisted
xattr
xattr-0.6.4-py2.7.egg-info
zope
zope.interface-3.8.0-py2.7.egg-info

so should i delete the setuptools?

On Wed, Apr 23, 2014 at 5:16 AM, Matt Iversen notifications@github.comwrote:

Could you ll what's in
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/

It seems you have an old distribute / setuptools that's being incredibly
uncooperative and generally not nice and needs to be cleaned up


Reply to this email directly or view it on GitHubhttps://github.com//issues/1746#issuecomment-41140493
.

I AM A TITAN

I AM A TITAN

I AM A TITAN

@Ivoz
Copy link
Contributor

Ivoz commented Apr 25, 2014

setuptools also installs pkg_resources.py, so that's something you could remove (and the source of problems atm).

Those extra ones are probably embedded pythons used just by those text editors.

Get rid of

easy_install.py
easy_install.pyc
pkg_resources.py.OLD.1398239028.39
pkg_resources.pyc
setuptools-0.6c12dev_r88846-py2.7.egg-info
setuptools-0.6c12dev_r88846-py2.7.egg-info.OLD.1398239028.39
setuptools.OLD.1398239028.39
site.py.OLD.1398239028.39

@dstufft
Copy link
Member

dstufft commented Sep 11, 2014

Is this still happening? I'm guessing this is because we wern't clobbering bin files. I'm going to close this but if it's still happening feel free to reopen this and we'll get to the bottom of it!

@dstufft dstufft closed this as completed Sep 11, 2014
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

4 participants