You are not logged in.

#1 2018-11-30 14:32:47

dd3f
Member
Registered: 2014-10-02
Posts: 6

[SOLVED] after pacman -S tensorflow-cuda I cannot import tensorflow

Hello,
I installed with `pacman -S tensorflow-cuda` but now if I go in the python shell  it doesn't find the  module.

[~]$sudo pacman -S tensorflow-cuda 
warning: tensorflow-cuda-1.12.0-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) tensorflow-cuda-1.12.0-1

Total Installed Size:  942.86 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                                  [##################################] 100%
(1/1) checking package integrity                                [##################################] 100%
(1/1) loading package files                                     [##################################] 100%
(1/1) checking for file conflicts                               [##################################] 100%
(1/1) checking available disk space                             [##################################] 100%
:: Processing package changes...
(1/1) reinstalling tensorflow-cuda                              [##################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
[~]$python
Python 3.7.1 (default, Oct 22 2018, 10:41:28) 
[GCC 8.2.1 20180831] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'tensorflow'
>>> 

At the moment I am stacked and I have no idea how to fix it.  Any suggestion?

I am not sure because I do not remember well, maybe the first time I did `pacman -S` I could have had
anaconda activated with this variable set by my .bashrc
`export PATH="/home/dimitri/miniconda3/bin:$PATH"`
but now it is removed.

Last edited by dd3f (2018-11-30 15:06:42)

Offline

#2 2018-11-30 14:42:07

ayekat
Member
Registered: 2011-01-17
Posts: 1,270
Website

Re: [SOLVED] after pacman -S tensorflow-cuda I cannot import tensorflow

I'm not familiar with tensorflow, but it appears that the tensorflow-cuda package does not provide any python files (check the output of `pacman -Ql tensorflow-cuda`).

Offline

#3 2018-11-30 15:06:07

dd3f
Member
Registered: 2014-10-02
Posts: 6

Re: [SOLVED] after pacman -S tensorflow-cuda I cannot import tensorflow

@ayekat, you are completely right, I simply installed the wrong package. The correct one is python-tensorflow-cuda.

Thank you

Offline

Board footer

Powered by FluxBB