Tensorboard is working but tensorflow throws import module error Ubuntu 16.04 server, conda 4.5.4, python 2.7
up vote
0
down vote
favorite
So, I installed tensorflow-gpu using pip in a conda virtual environment called tensorflow-gpu. I am using Python 2.7.14, Ubuntu 16.04 Server, Conda 4.5.4.
I have installed tensorflow correctly, and the paths to Conda bin, lib64, and to Cuda are set(nvcc -V works). The env is activated.(Verified by conda info --envs), and this env has the package tensorflow installed.(conda list -n tensorflow-gpu). Tensorboard can be imported, but importing tensorflow throws a module import error.
Python 2.7.14 |Anaconda custom (64-bit)| (default, Oct 16 2017, 17:29:19)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorboard
>>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named tensorflow
>>>
I find this very strange, and would appreciate assistance in debugging this, and if anyone has experienced something like this, advice would be welcome. Thanks.
python tensorflow installation anaconda
add a comment |
up vote
0
down vote
favorite
So, I installed tensorflow-gpu using pip in a conda virtual environment called tensorflow-gpu. I am using Python 2.7.14, Ubuntu 16.04 Server, Conda 4.5.4.
I have installed tensorflow correctly, and the paths to Conda bin, lib64, and to Cuda are set(nvcc -V works). The env is activated.(Verified by conda info --envs), and this env has the package tensorflow installed.(conda list -n tensorflow-gpu). Tensorboard can be imported, but importing tensorflow throws a module import error.
Python 2.7.14 |Anaconda custom (64-bit)| (default, Oct 16 2017, 17:29:19)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorboard
>>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named tensorflow
>>>
I find this very strange, and would appreciate assistance in debugging this, and if anyone has experienced something like this, advice would be welcome. Thanks.
python tensorflow installation anaconda
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
So, I installed tensorflow-gpu using pip in a conda virtual environment called tensorflow-gpu. I am using Python 2.7.14, Ubuntu 16.04 Server, Conda 4.5.4.
I have installed tensorflow correctly, and the paths to Conda bin, lib64, and to Cuda are set(nvcc -V works). The env is activated.(Verified by conda info --envs), and this env has the package tensorflow installed.(conda list -n tensorflow-gpu). Tensorboard can be imported, but importing tensorflow throws a module import error.
Python 2.7.14 |Anaconda custom (64-bit)| (default, Oct 16 2017, 17:29:19)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorboard
>>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named tensorflow
>>>
I find this very strange, and would appreciate assistance in debugging this, and if anyone has experienced something like this, advice would be welcome. Thanks.
python tensorflow installation anaconda
So, I installed tensorflow-gpu using pip in a conda virtual environment called tensorflow-gpu. I am using Python 2.7.14, Ubuntu 16.04 Server, Conda 4.5.4.
I have installed tensorflow correctly, and the paths to Conda bin, lib64, and to Cuda are set(nvcc -V works). The env is activated.(Verified by conda info --envs), and this env has the package tensorflow installed.(conda list -n tensorflow-gpu). Tensorboard can be imported, but importing tensorflow throws a module import error.
Python 2.7.14 |Anaconda custom (64-bit)| (default, Oct 16 2017, 17:29:19)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorboard
>>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named tensorflow
>>>
I find this very strange, and would appreciate assistance in debugging this, and if anyone has experienced something like this, advice would be welcome. Thanks.
python tensorflow installation anaconda
python tensorflow installation anaconda
edited Nov 22 at 16:15
asked Nov 22 at 4:55
RSSharma
84
84
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53424120%2ftensorboard-is-working-but-tensorflow-throws-import-module-error-ubuntu-16-04-se%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown