Install python 2.6 centos




















No, that's it. You might want to make sure you have all optional library headers installed too so you don't have to recompile it later. They are listed in the documentation I think. Also, you can install it even in the standard path if you do make altinstall.

That way it won't override your current default "python". When you install your python version in this case it is python2.

Late to the party, but the OP should have gone with Buildout or Virtualenv , and sidestepped the problem completely. I am currently working on a Centos server, well, toiling away would be the proper term and I can assure everyone that the only way I am able to blink back the tears whilst using the software equivalents of fire hardened spears, is buildout. I unistalled the original version of python 2.

You can also install any version instead of 3. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Install python 2. Asked 12 years, 3 months ago. Active 3 years, 11 months ago. Viewed k times. I have a shell that runs CentOS. For a project I'm doing, I need python 2. From what I've read, a number of things will break if you upgrade to 2. Improve this question.

Michael Dillon 31k 5 5 gold badges 66 66 silver badges bronze badges. If you politically can make the jump, do it. You'll be much happier and won't have to worry about this type of thing anymore. Or, even better, trash centos and install debian :P — o0'.

If there is an option to switch to the latest distribution then switching to Fedora makes much more sense than switching to Ubuntu for somebody with a CentOS background. Just to be clear, without any sarcastic sidebars: YES. CentOS 6 comes with python 2. Add a comment. Active Oldest Votes. Improve this answer. Xavi In fact installing 2.

You want to do an alternative alt install of Python. With Python we may use the --enable-shared flag to create a shared library named libpython2.

This single library will be used by all the Python interpreters e. Sharing a big chunk of common memory reduces their individual memory footprints. Very important technique for memory limited VPS systems, and really any system.

The executables and libraries that need other libraries need to be told how to find their shared library. Using ldconfig is not a robust technique. A good example is upgrading SQLite from version 3. I wanted to do this iBoth of the sqlite3 executables look for a shared lib named libsqlite3. Sridhar Ratnakumar 1 1 gold badge 2 2 silver badges 9 9 bronze badges. ActivePython also provides modwsgi binaries on Linux: code. If you build it, download the tarball with wget.

Yes, replacing the standard Python 2. Jeff Leyser Jeff Leyser 6 6 silver badges 19 19 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related 3.

Hot Network Questions.



0コメント

  • 1000 / 1000