Issue with installing Python 2.7 on JetPack 4.2

Hi,
I’m trying to install the Python 2.7 and I get the following error at the end:

libpython2.7-stdlib is already the newest version (2.7.15~rc1-1ubuntu0.1).
libpython2.7-stdlib set to manually installed.
python2.7 is already the newest version (2.7.15~rc1-1ubuntu0.1).
python2.7 set to manually installed.
python2.7-dev is already the newest version (2.7.15~rc1-1ubuntu0.1).
python2.7-dev set to manually installed.
python2.7-minimal is already the newest version (2.7.15~rc1-1ubuntu0.1).
python2.7-minimal set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-btrees : Breaks: python-zodb (< 1:4) but 1:3.10.7-1build1 is to be installed
 python-cherrypy3 : Conflicts: python-cherrypy but 2.3.0-5 is to be installed
 python-libpcap : Conflicts: python-pypcap but 1.1.5-1 is to be installed
 python-pypcap : Conflicts: python-libpcap but 0.6.4-1 is to be installed
 python-quixote1 : Conflicts: python-quixote but 2.7~b2-1.1 is to be installed
 python-xattr : Conflicts: python-pyxattr
E: Unable to correct problems, you have held broken packages.

Any help would appreciated,
Thanks,
–Kash

Hi,

Could you share the command you executed with us?

In JetPack4.2, the default python2 version is v2.7.

$ python --version
Python 2.7.15rc1

Do you need other python2 version?

Thanks.

Hi,
To install the Python 2.7, I used the following command:

sudo get-apt install python 2.7

But when I check the version, I get the followings:

python --version
Python 2.7.15rc1
python3 --version
Python 3.6.7

We’ve developed our software in Python 3 and I guess the reason I get that fault is because the Python 2.7 is already installed.

–Kash

Hi,

possible.

You don’t need to install python2 or python3 for Jetson.
It is installed by default.

Thanks.

AastaLL,
You are right. It’s already installed.

Thanks,
–Kash