Home:ALL Converter>centos7 pyodbc installation issues

centos7 pyodbc installation issues

Ask Time:2020-05-19T17:40:42         Author:vidiv

Json Formatter

I am using centos7

my python script works fine, when i execute as

python myscripy.py (python --version is pointing to python2.7.5)

i used following link to install pyodbc https://github.com/mkleehammer/pyodbc/wiki/Connecting-to-SQL-Server-from-RHEL-6-or-Centos-7

when i run my python script using

python3.6 myscript.py

ModuleNotFoundError: No module named 'pyodbc'

On trying to install devel using

sudo yum install python3-devel,i am getting follwing error

file /usr/lib/python3.6/site-packages/pip/vcs/pycache/subversion.cpython-36.pyc from install of python3-pip-9.0.3-7.el7_7.noarch conflicts with file from package python36u-pip-9.0.1-1.ius.centos7.noarch

I tried changing alias as well,but it did not work. Please help me to run my code with python3.6 as well

Author:vidiv,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/61887904/centos7-pyodbc-installation-issues
yy