geekcomputers / Python

My Python Examples
http://www.thegeekblog.co.uk
MIT License
31.82k stars 12.28k forks source link

python could not install any script #260

Open BlackTighr opened 7 years ago

BlackTighr commented 7 years ago

I installed python from brew

brew install python

then installed pip

sudo easy_install pip

in Terminal

$ which easy_install
/usr/bin/easy_install

$ which python
/usr/bin/python

But then when I want to install any Python script I get this:

Searching for pexpect
Best match: pexpect 4.2.1
Adding pexpect 4.2.1 to easy-install.pth file

Using /Library/Python/2.7/site-packages
Processing dependencies for pexpect
Finished processing dependencies for pexpect
Searching for pycrypto
Best match: pycrypto 2.6.1
pycrypto 2.6.1 is already the active version in easy-install.pth

Using /Library/Python/2.7/site-packages
Processing dependencies for pycrypto
Finished processing dependencies for pycrypto
Searching for pyopenssl
Best match: pyOpenSSL 0.13.1
pyOpenSSL 0.13.1 is already the active version in easy-install.pth

Using /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
Processing dependencies for pyopenssl
Finished processing dependencies for pyopenssl
Searching for pefile
Best match: pefile 2017.9.3
pefile 2017.9.3 is already the active version in easy-install.pth

Using /Library/Python/2.7/site-packages
Processing dependencies for pefile
Finished processing dependencies for pefile

Here's an image of the problem:

pjha1994 commented 6 years ago

Which script do you want to install?

cclauss commented 5 years ago

Can this issue be closed? brew install python already installs pip. Do not use "_easyinstall". See https://packaging.python.org/discussions/pip-vs-easy-install