![]() The highest version of python2.7 is 2.7.15. There is also a bin file called /usr/local/bin/python2.7, which is exactly the same as /usr/local/bin/python. If you type “python” on the command line, shell will actually execute python 2.7. Now python 2.7 is installed as /usr/local/bin/python. Yum -y install bzip2 bzip2-devel bzip2-libs Yum -y install openssl-devel* ncurses-devel* zlib* I have to download the source code of python 2.7 and compile it from scratch. Python2.6.6 is the final and highest version available on centos 6.5 for yum. However, I could not do this using yum on my centos5 server. I need to upgrade the old version of python to a later version. This is because in python2.7 and later version, you do not need to specify a location number to format a string but in python2.6 you do need(see this post and this article). ![]() And I also meet the error:” ValueError: zero length field name in format“. For example, the new feature does not work for python2.6. ![]() Some code is broken when running in old python version. My python environment is Python2.6.6 under CentOS 6.5. I have problem running a python script developed using python2.7.
0 Comments
Leave a Reply. |