upgrading from a version of python to the other
Hello,
I have recently installed Linux Mint 19 and noticed that it comes with python2.7.15rc1-1 This version of python (with the release candidate) is the current version from the repository, but I noticed that a newer version (and more stable) is available. I ran the sudo apt install python-dev command and I get this: Reading package lists... Done Building dependency tree Reading state information... Done python-dev is already the newest version (2.7.15~rc1-1). 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade. Is there another way to upgrade to the newer version of python besides the classical: get package, untar it and then configure, make and make install? Thank you kindly for taking your time to read my thread. |
are you talking about python2 vs python3?
they are suupposed to co-exist. installing python3 will not remove python2. |
Mint comes with both python2 and python3.
Don't fix it if it isn't broken. terminal > Code:
python3 Upgrade that at your peril. |
To back up the other posters, both Python 2 and Python 3 are very important for the correct functioning of Mint. Both should be maintained at the repo versions. If you need a more up-to-date version of either Python 2 or 3, and you don't want to screw up your system, then you would be best advised to choose a rolling distro or a fixed-release distro with that version in its base repos.
Just because a package version is named as a release candidate, as is the case for the version of Python 2 in the Mint 19/Ubuntu 18.04 repos, doesn't mean that it isn't stable or well-tested (it normally has to be both of these to get into the repos in the first place). |
which one is that "newer version (and more stable)"?
|
I am talking about python2. I do not want to mess with python2 because a lot of things depend on it.
I am trying to install some software and it has some issues with python. The wait for repository to upgrade or try another distro is not a solution to me. |
Aha!
Please post the problems you are having with the software you’re trying to install. What is the software? What are the “issues”? |
Here are the lines where it crashes:
checking for a version of Python >= '2.1.0'... yes checking for a version of Python >= '2.7.3'... Traceback (most recent call last): File "<string>", line 1, in <module> File "ax_python_devel_vpy.py", line 6, in __init__ self.vpy = self.vtup(platform.python_version()) File "ax_python_devel_vpy.py", line 3, in vtup return map(int, s.strip().split(".")) ValueError: invalid literal for int() with base 10: '15rc1' no configure: error: this package requires Python >= '2.7.3'. If you have it installed, but it isn't the default Python interpreter in your system path, please pass the PYTHON_VERSION variable to configure. See ``configure --help'' for reference. The problem is that when the program looks for a version newer than python 2.7.3, it runs into this problem: ValueError: invalid literal for int() with base 10: '15rc1' This is why I initially asked if there is a way to force an installation of python2.7.15 over 2.7.15rc1 The name of the software is RIVET and it can be downloaded from rivet.hepforge.org |
Quote:
You have a version of python2 that is > 2.7.3...The version you have installed is 2.7.15, so you do not need to upgrade python2. First, review configure --help (or maybe ./configure --help when in the installation directory). Have you tried doing what the error messages suggested? What does Code:
which python Then enter the value returned with --version Code:
/bin/python --version Have you read and followed these instruction? The bottom line of my post is that you're chasing the wrong problem. Again, you appear to have a proper version of python installed...the issue appears to be that the install script isn't finding it. That's what you need to address. |
I have tried to review what the error message says.
It seems that there should be some alterations in the configure file, but that is out of my league. You are correct about addressing the wrong problem, but I don't know how to adjust the script in such a way to make it work. |
for me it looks like it tried to understand 15rc1 as a version number - and failed.
probably installing an earlier version (like 2.7.14) would be good enough. |
Heck of a good catch, pan64!!
I don’t know Mint...how do we help them with the downgrade? OR (maybe better) "pass[ing] the PYTHON_VERSION variable to configure" rpaun...What does Code:
configure --help |
^ ok that's probably something to check out.
i was thinking:
|
All times are GMT -5. The time now is 08:23 PM. |