Enthought canopy upgrade python version - python-2.7

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)

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)

How to install h5py for version 1.10

I am using tensorflow in a python module, which is called by a c++ file. I moved to a new computer, where I installed ros again. So it works on one computer, but not on the other. There I got the following error:
UserWarning: h5py is running against HDF5 1.10.0 when it was built against 1.10.4, this may cause problems '{0}.{1}.{2}'.format(*version.hdf5_built_version_tuple)
then I did:
pip2.7 uninstall h5py
pip2.7 install h5py==1.10.4
but then I get the following error:
No handlers could be found for logger "keyring.backend"
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement h5py==1.10.4 (from versions: 2.2.1, 2.3.0b1, 2.3.0, 2.3.1, 2.4.0b1, 2.4.0, 2.5.0, 2.6.0, 2.7.0rc2, 2.7.0, 2.7.1, 2.8.0rc1, 2.8.0, 2.9.0rc1, 2.9.0, 2.10.0)
ERROR: No matching distribution found for h5py==1.10.4
It seems like there is no 1.10.4 version. What should I do?
I have to use python2.7. Also if I just let the python2.7 script run, it works. Only in conjunction with ros I get this error. But I think I take the python version from the same folder.
Thank you

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

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

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?

Installed numpy 1.8, but python still importing old 1.6.2 version

I did sudo pip install numpy==1.8 to upgrade to the most recent version and it said the install was successful, but then I checked the numpy version again in the python shell and it's still importing 1.6.2. I went into the numpy directory at /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/ and it says the version is 1.6.2. I'm assuming that this is the version that came pre-installed. Where does the numpy upgrade get installed?
thnx