質問編集履歴

3

誤字の修正

2023/03/16 00:26

投稿

grandfleet
grandfleet

スコア1

test CHANGED
File without changes
test CHANGED
@@ -86,7 +86,8 @@
86
86
  Successfully installed numpy-1.24.2
87
87
  Note: you may need to restart the kernel to use updated packages.
88
88
 
89
- しかしながら、やはりimport pandasで同じエラーが出てしまいまい変わらずでた。
89
+ しかしながら、やはりimport pandasで同じエラーが出てしまいまし
90
+ 結果的に変わらずでした。
90
91
 
91
92
 
92
93
 

2

試したことを追記

2023/03/16 00:25

投稿

grandfleet
grandfleet

スコア1

test CHANGED
File without changes
test CHANGED
@@ -71,3 +71,22 @@
71
71
  OS:Ubuntu20.04LTS
72
72
  Spyder3(anacondaではなく単体) でも 端末からの実行でも出てしまいます。
73
73
 
74
+ ーーー 試したこと ーーー
75
+ stackoverflowでは下記で対応できたとの回答が見つかったので、試してみました
76
+ pip install --upgrade numpy
77
+
78
+ 一部エラーがでたもののうまくいった?感じです。
79
+ (実行結果)
80
+ Collecting numpy
81
+ Using cached numpy-1.24.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
82
+ ERROR: scipy 1.7.1 has requirement numpy<1.23.0,>=1.16.5, but you'll have numpy 1.24.2 which is incompatible.
83
+ ERROR: pandas 1.5.3 has requirement python-dateutil>=2.8.1, but you'll have python-dateutil 2.7.3 which is incompatible.
84
+ ERROR: pandas 1.5.3 has requirement pytz>=2020.1, but you'll have pytz 2019.3 which is incompatible.
85
+ Installing collected packages: numpy
86
+ Successfully installed numpy-1.24.2
87
+ Note: you may need to restart the kernel to use updated packages.
88
+
89
+ しかしながら、やはりimport pandasで同じエラーが出てしまいまい変わらずでした。
90
+
91
+
92
+

1

pathを一部正しく変更

2023/03/16 00:18

投稿

grandfleet
grandfleet

スコア1

test CHANGED
File without changes
test CHANGED
@@ -17,7 +17,7 @@
17
17
  File "/usr/lib/python3/dist-packages/spyder_kernels/customize/spydercustomize.py", line 110, in execfile
18
18
  exec(compile(f.read(), filename, 'exec'), namespace)
19
19
 
20
- File "/home/tyuki/test.py", line 10, in <module>
20
+ File "/home/user/test.py", line 10, in <module>
21
21
  import pandas
22
22
 
23
23
  File "/home/user/.local/lib/python3.8/site-packages/pandas/__init__.py", line 22, in <module>