英文:
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.
答案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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论