在IBM Bluemix服务器上安装pyodbc服务器错误 [英] pyodbc install on IBM Bluemix server error

查看:226
本文介绍了在IBM Bluemix服务器上安装pyodbc服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在IBM Bluemix上托管我的应用程序。在我的应用程序中,我已经使用瓶,我正在尝试连接到Azure SQL Server数据库。因此,我使用Pyodbc。

所以在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆