質問編集履歴

1

試したことと、説明が分かりにくかったので追記しました。

2023/10/31 05:26

投稿

apto117
apto117

スコア1

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,7 @@
4
4
  ### 前提
5
5
 
6
6
  Streamlitでコードを書いています。
7
- オフライン環境では問題なく動くのですが、GithubにアップロードしてSteamlitのページで動かすとモジュールが見つからないとエラーが発生します。
7
+ オフライン環境では問題なく動くのですが、GithubにアップロードしてSteamlit Cloudで動かすとモジュールが見つからないとエラーが発生します。
8
8
  同様のエラーが起きた事例ではrequirements.txtにモジュール名を書くと解決したとあったので試したのですが、やはり同様のエラーが起きます。
9
9
 
10
10
  ```
@@ -25,11 +25,15 @@
25
25
  import streamlit_pandas as sp
26
26
  ```
27
27
  ```requirements.txt
28
- Python
29
- pandas
28
+ pandas==1.5.3
30
- plotly
29
+ plotly==5.18.0
30
+ python_dateutil==2.8.2
31
+ streamlit==1.18.1
31
- streamlit_pandas
32
+ streamlit_pandas==0.0.9
32
33
  ```
33
34
  ### 試したこと
34
35
  requirements.txtにバージョンを追記したり、順番を変えてみてもplotlyとstereamlit_pandasでエラーが発生しました。
36
+ 追記【2023/10/31】
37
+ pipreqsでrequirements.txtを生成、更新し直した。
38
+ Github上でファイルの更新が行われているかも確認した。
35
39