Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Python Version

happy10319May 30 2018 — edited Jun 4 2018

Hi,

On Oracle Linux I had:

python -V

Python 2.6.6

I ran:

wget http://python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz

tar xf Python-3.6.3.tar.xz

cd Python-3.6.3

./configure --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"

make && make altinstall

And I see:

[root@rac1 ~]# ls /usr/local/lib

libpython3.6m.so  libpython3.6m.so.1.0  libpython3.so  pkgconfig  python3.6

[root@rac1 ~]#

But I have always:

python -V

Python 2.6.6

Any idea?

Thanks.

This post has been answered by Christopher Jones-Oracle on Jun 3 2018
Jump to Answer

Comments

Andris Perkons-Oracle

What's the output of "type python"? Just because you place some software onto your system, does not mean that your system automatically finds it. You may have to modify your PATH or you may have to call your newly installed python with a fully qualified name (e.g. "/usr/local/bin/python -V").

Andris

happy10319

Thanks.

type python

python is /usr/bin/python

[root@rac1 ~]# python3 --version

Python 3.6.0

Seems OK.

Answer

For Python and cx_Oracle packages, check out this landing page https://yum.oracle.com/oracle-linux-python.html which shows how to install different versions of Python.

Marked as Answer by happy10319 · Sep 27 2020
happy10319

Thank you.

1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 2 2018
Added on May 30 2018
4 comments
635 views