質問編集履歴

4

 

2015/11/25 12:10

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -18,33 +18,33 @@
18
18
 
19
19
  Traceback (most recent call last):
20
20
 
21
- File "hello-tf.py", line 1, in <module>
21
+ File "hello-tf.py", line 1, in <module>
22
22
 
23
- import tensorflow as tf
23
+ import tensorflow as tf
24
24
 
25
- File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/__init__.py", line 4, in <module>
25
+ File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/__init__.py", line 4, in <module>
26
26
 
27
- from tensorflow.python import *
27
+ from tensorflow.python import *
28
28
 
29
- File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 22, in <module>
29
+ File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 22, in <module>
30
30
 
31
- from tensorflow.python.client.client_lib import *
31
+ from tensorflow.python.client.client_lib import *
32
32
 
33
- File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/client/client_lib.py", line 35, in <module>
33
+ File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/client/client_lib.py", line 35, in <module>
34
34
 
35
- from tensorflow.python.client.session import InteractiveSession
35
+ from tensorflow.python.client.session import InteractiveSession
36
36
 
37
- File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 11, in <module>
37
+ File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 11, in <module>
38
38
 
39
- from tensorflow.python import pywrap_tensorflow as tf_session
39
+ from tensorflow.python import pywrap_tensorflow as tf_session
40
40
 
41
- File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
41
+ File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
42
42
 
43
- _pywrap_tensorflow = swig_import_helper()
43
+ _pywrap_tensorflow = swig_import_helper()
44
44
 
45
- File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
45
+ File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
46
46
 
47
- _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
47
+ _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
48
48
 
49
49
  ImportError: libcudart.so.7.0: cannot open shared object file: No such file or directory
50
50
 

3

もう少しわかりやすくしました

2015/11/25 12:10

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -12,89 +12,9 @@
12
12
 
13
13
 
14
14
 
15
- エラー内容は以下のとおりです。
16
-
17
- ```
18
-
19
- Traceback (most recent call last):
20
-
21
- File "hello-tf.py", line 1, in <module>
22
-
23
- import tensorflow as tf
24
-
25
- File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/__init__.py", line 4, in <module>
26
-
27
- from tensorflow.python import *
28
-
29
- File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 22, in <module>
30
-
31
- from tensorflow.python.client.client_lib import *
32
-
33
- File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/client/client_lib.py", line 35, in <module>
34
-
35
- from tensorflow.python.client.session import InteractiveSession
36
-
37
- File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 11, in <module>
38
-
39
- from tensorflow.python import pywrap_tensorflow as tf_session
40
-
41
- File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
42
-
43
- _pywrap_tensorflow = swig_import_helper()
44
-
45
- File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
46
-
47
- _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
48
-
49
- ImportError: /root/tensorflow/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so: invalid ELF header
50
-
51
- ```
52
-
53
-
54
-
55
- おそらく以下の箇所でエラーが発生しているようですが全く原因がわかりません
56
-
57
- import tensorflow as tf
58
-
59
-
60
-
61
- どなたかわかる方いましたら教えて下さい。
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
- 追記
70
-
71
- すいません
72
-
73
- 上記のサイトはmac環境の解説だったようです
74
-
75
- 私の環境はcentosなので以下のコマンドからインストール
76
-
77
- することにしました。
78
-
79
- ```
80
-
81
- pip install https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
82
-
83
15
 
84
16
 
85
17
  ```
86
-
87
- でも、さいど以下のコマンドを叩くと今度は別のエラーが
88
-
89
- 表示されるようになってしまいました。
90
-
91
- $python hello-tf.py
92
-
93
-
94
-
95
- ```
96
-
97
- python hello-tf.py
98
18
 
99
19
  Traceback (most recent call last):
100
20
 

2

質問微変更しました

2015/11/25 12:09

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -59,3 +59,77 @@
59
59
 
60
60
 
61
61
  どなたかわかる方いましたら教えて下さい。
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+ 追記
70
+
71
+ すいません
72
+
73
+ 上記のサイトはmac環境の解説だったようです
74
+
75
+ 私の環境はcentosなので以下のコマンドからインストール
76
+
77
+ することにしました。
78
+
79
+ ```
80
+
81
+ pip install https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
82
+
83
+
84
+
85
+ ```
86
+
87
+ でも、さいど以下のコマンドを叩くと今度は別のエラーが
88
+
89
+ 表示されるようになってしまいました。
90
+
91
+ $python hello-tf.py
92
+
93
+
94
+
95
+ ```
96
+
97
+ python hello-tf.py
98
+
99
+ Traceback (most recent call last):
100
+
101
+ File "hello-tf.py", line 1, in <module>
102
+
103
+ import tensorflow as tf
104
+
105
+ File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/__init__.py", line 4, in <module>
106
+
107
+ from tensorflow.python import *
108
+
109
+ File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 22, in <module>
110
+
111
+ from tensorflow.python.client.client_lib import *
112
+
113
+ File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/client/client_lib.py", line 35, in <module>
114
+
115
+ from tensorflow.python.client.session import InteractiveSession
116
+
117
+ File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 11, in <module>
118
+
119
+ from tensorflow.python import pywrap_tensorflow as tf_session
120
+
121
+ File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
122
+
123
+ _pywrap_tensorflow = swig_import_helper()
124
+
125
+ File "/root/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
126
+
127
+ _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
128
+
129
+ ImportError: libcudart.so.7.0: cannot open shared object file: No such file or directory
130
+
131
+ ```
132
+
133
+
134
+
135
+ こちらのエラーの解決方法がわかる方いたら教えて頂けますでしょうか?

1

変更しました

2015/11/24 13:07

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -52,6 +52,10 @@
52
52
 
53
53
 
54
54
 
55
- 原因がわかりません
55
+ おそらく以下の箇所でエラーが発生しているようですが全く原因がわかりません
56
+
57
+ import tensorflow as tf
58
+
59
+
56
60
 
57
61
  どなたかわかる方いましたら教えて下さい。