如何在IIS服务器的conda基础环境中部署python flask应用程序? [英] How to deploy python flask application in conda base environment on IIS server?

查看:143
本文介绍了如何在IIS服务器的conda基础环境中部署python flask应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在IIS服务器上部署Flask REST API应用程序以发布一些ML API.我已经安装了Anaconda以在其基本环境上运行该应用程序,因为我需要导入一些数据科学库.我遵循此链接进行部署,并且对于教程

I want to deploy a flask REST API application on IIS server to publish some ML APIs. I have installed Anaconda to run the app on its base environment as I have some data science libraries to import. I followed this link for deployment and it is working fine for the example given in the tutorial https://medium.com/@bilalbayasut/deploying-python-web-app-flask-in-windows-server-iis-using-fastcgi-6c1873ae0ad8. but in my app imports to pandas is not working. It seems my app is not running on conda base environment. Can anybody help me what configuration I need to add so that my app runs on conda base environment.

推荐答案

我在使用Anaconda Python 3.7.4时遇到了这个问题,当我将其降级到3.6.5时,它对我有用.

I was facing this issue with Anaconda Python 3.7.4, When I downgraded it to 3.6.5 it worked for me.

这篇关于如何在IIS服务器的conda基础环境中部署python flask应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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