python version 2.7.3 can't run /usr/bin/easy_install - python-2.7

I updated python from 2.6 to 2.7.3 in Mac OS 10.6.8. The version I checked in Terminal is 2.7.3. Then I installed easy_install using setup.py. There is no error in process of installing, but after installing, I cannot using easy_install. The error message is:
python version 2.7.3 can't run /usr/bin/easy_install. Try the alternative(s):
/usr/bin/easy_install_2.5 (use python 2.5)
/usr/bin/easy_install_2.6 (use python 2.6)
Run man python for more information about multiple version support im Mac OS X.
How can I configure to make easy_install work?

Related

upgrade to pip-22.1.2 version in python2.7

I am using a linux Ubuntu server. Can I install the new pip-22.1.2 version in a python 2.7 environment?
I can only get the older version with pip3 --version.
Should I use virtualenv?
(the outcome is just for learning purpose)

pypy2.7.1.1 fails using pyenv

I am trying to install python version pypy2.7.1.1 using the following
pyenv install pypy2.7-7.1.1
I get the following error:
Downloading pypy2.7-v7.1.1-osx64.tar.bz2...
-> https://downloads.python.org/pypy/pypy2.7-v7.1.1-osx64.tar.bz2
Installing pypy2.7-v7.1.1-osx64...
Installing pip from https://bootstrap.pypa.io/get-pip.py...
error: failed to install pip via get-pip.py
BUILD FAILED (OS X 11.2.3 using 0000000000)
Inspect or clean up the working tree at /var/folders/zt/q3p12vyx3l990yc32wmybqdr0000gs/T/python-build.20210428193745.1720
Results logged to /var/folders/zt/q3p12vyx3l990yc32wmybqdr0000gs/T/python-build.20210428193745.1720.log
Last 10 log lines:
/var/folders/zt/q3p12vyx3l990yc32wmybqdr0000gs/T/python-build.20210428193745.1720 ~
/var/folders/zt/q3p12vyx3l990yc32wmybqdr0000gs/T/python-build.20210428193745.1720/pypy2.7-v7.1.1-osx64 /var/folders/zt/q3p12vyx3l990yc32wmybqdr0000gs/T/python-build.20210428193745.1720 ~
ERROR: This script does not work on Python 2.7 The minimum supported Python version is 3.6. Please use https://bootstrap.pypa.io/pip/2.7/get-pip.py instead.
since pip was moved for 2.7 how do I install this now? is there a different way to install deprecated versions of python now?
I was having a similar issue on Mac OS 10.15.7 (Catalina).
This is how I was finally able to install Python 2.7 via pyenv
export GET_PIP_URL=https://bootstrap.pypa.io/pip/2.7/get-pip.py
PYTHON_BUILD_HOMEBREW_OPENSSL_FORMULA=openssl#1.0 pyenv install 2.7.5
I realize that you are trying to install pypy and not Python, but hopefully the method above helps you, or others!

Enthought canopy upgrade python version

I am currently running enthaught canopy's python version 2.7.11 on laptop however my desktop has the latest python version 3.5.2 how do i update the same in my laptop?
What commands should i run or am i required to re un nstall and re install canopy?
The current version of Canopy is 2.1.3, supporting Python 2.7.13 and 3.5.2 (and 3.6 with an an extra step).
To update Canopy, please see "Installing a new Canopy version".
(Yes, you'll need to uninstall Canopy v1.x before installing Canopy 2)

How to make ipython use Python 2.7 and not Python 3.4 (on Ubuntu)?

I use Ubuntu 14.04. I had installed both Python 2.7 and Python 3.4 versions. I also had ipython installed (which was using Python 2.7 by default). Later I installed ipython3 using
sudo pip3 install ipython
and now I have ipython3. But when I only run ipython, it uses Python 3.4 (as opposed to 2.7). How to make default ipython use Python 2.7?
open .bashrc and add in the bottom
alias ipython='/usr/local/bin/ipython2.7'
before adding check confirm name ipython name of version 2.7 in /usr/local/bin

numpy and scipy for preinstalled python 2.7.1 on mac OS Lion

I am trying to install numpy and scipy for python 2.7.1 that comes with Mac OS Lion. I tried to follow instructions on numpy and scipy for preinstalled python 2.6.7 on mac OS Lion 3. fter installing gfortran, sudo easy_install-2.7 pipworks just fine. But when I try sudo pip2.7 install numpy, I get the following error
Wheel installs require setuptools >= 0.8 for dist-info support.
pip's wheel support requires setuptools >= 0.8 for dist-info support.
Storing debug log for failure in /Users/MYUSERNAME/Library/Logs/pip.log
I remember when I was trying to install it for Python 2.6, I did not have this problem. Any suggestion for resolving this problem?