在IBM Bluemix服务器上安装pyodbc服务器错误 [英] pyodbc install on IBM Bluemix server error
问题描述
所以在 require.txt
文件中,我给了
pip install pyodbc
和
pip install flask
。
这些东西正在我的本地机器上安装,应用程序运行良好。我正在从数据库中获得结果。但是,当我试图在IBM Bluemix,
上部署我的应用程序的同时推送服务器上的文件它给我一个错误。
我附上了下面的错误截图。
require.txt的内容在这里
unixodbc-dev
pyodbc == 3.1.1
Flask == 0.12.2
< a href =https://i.stack.imgur.com/WGFep.png =nofollow noreferrer>
解决方案
一个解决方案是使用miniconda安装依赖而不是pip。在buildpack中使用miniconda是 here 。
请参阅这里了解更多关于使用miniconda安装pyodbc的信息。
I am trying to host my app on IBM bluemix. In my app, I have used flask and I am trying to Connect to Azure SQL Server database. So for that, I am using Pyodbc.
So in requirement.txt
file I have given
pip install pyodbc
and
pip install flask
.
These things are getting installed on my local machine and the app is running fine. I am getting the result from the database .
But when I am trying to deploy my application on IBM bluemix, while pushing the files on the server it is giving me an error. I have attached the error screenshot below.
The content of requirement.txt is here
unixodbc-dev
pyodbc==3.1.1
Flask==0.12.2
One solution is to use miniconda to install your dependencies instead of pip. Using miniconda with the buildpack is documented here.
See here for more information on using miniconda to install pyodbc.
这篇关于在IBM Bluemix服务器上安装pyodbc服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!