Error deploying Streamlit app "Could not find a version that satisfies the requirement StringIO"

huangapple go评论69阅读模式
英文:

Error deploying Streamlit app "Could not find a version that satisfies the requirement StringIO"

问题

"我是 streamlit 的新手。我有一个应用程序,它在本地运行正常。但是我尝试部署这个应用程序,似乎无法识别 'io' 库。有谁知道如何解决这个问题?

我已经尝试了几种方法,但都没有成功。

我的存储库在这里:https://github.com/m-moriss/Data_challenge_RAKUTEN

我在 'donnees.py' 中使用了 'io' 库,并且还将该库添加到了 requirements.txt 文件中。

这里是错误信息"

英文:

I'm new in the use of streamlit. I have an app and it work in the local way.
But I tried to deploy this app and it seems that the library "io" isn't recognize.
Does anyone know how to fix it ?

I've already tried several things but it doesn't works.

My repo is here :https://github.com/m-moriss/Data_challenge_RAKUTEN

I use "io" librairy in "donnees.py" and the I also put this librairy in the requirements.txt file.

Here the error message

答案1

得分: 1

StringIO 是 [tag:io] 模块的一个类,而不是一个独立的模块。

另外,你不需要在你的 requirements.txt 中包含 io,因为它是 Python 的内建模块。

numpy
pandas
plotly
datasets
Pillow
streamlit
streamlit-option-menu
dataset
nltk
scikit-learn
wordcloud
tensorflow
StringIO # <- 移除这行
英文:

StringIO is a class of the module [tag:io] and not a module itself.

Also, you doesn't need to include io in your requirements.txt since it's a python's built-in.

numpy
pandas
plotly
datasets
Pillow
streamlit
streamlit-option-menu
dataset
nltk
scikit-learn
wordcloud
tensorflow
StringIO # <- remove this line

huangapple
  • 本文由 发表于 2023年3月31日 02:32:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/75891803.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定