Install pyodbc on IBM Bluemix server error

I am trying to host my application on IBM bluemix. I used a jar in my application and I am trying to connect to an Azure SQL Server database. Therefore, I use Pyodbc for this.

So, in the file requirement.txtthat I gave pip install pyodbc as well pip install flask. These things are installed on my local computer and the application works fine. I get the result from the database.

But when I try to deploy my application on IBM bluemix, when I click on files on the server this gives me an error. I have attached a screenshot of the error below.

The content of the .txt requirement is here.

unixodbc-dev
pyodbc==3.1.1
Flask==0.12.2

Error message

+4
source share
2

miniconda pip. miniconda buildpack .

. miniconda pyobbc.

+1

error: command 'gcc' failed with exit status 1 , , gcc C/++ .

pyodbc :

Windows Microsoft Visual ++. Python 2.4 2.5 Visual Studio 2003.NET. , .

Python 2.6 Visual ++ 2008 Express. ( 2010 . , Python.)

Windows, : python setup.py bdist_wininst

, gcc.

Linux pyodbc unixODBC, unixODBC . RedHat/CentOS/Fedora , unixODBC-devel:

yum unixODBC-devel


: pyodbc Linux

-1

Source: https://habr.com/ru/post/1680927/


All Articles