You are not logged in.

#1 2023-12-11 01:46:11

thunderel05
Member
Registered: 2018-04-23
Posts: 18

How to use/import tensorflow-cuda in my python script

I just instaleld tensorflow-cuda from arch repository, then .  When I try to import tensorflow in python, it said "ModuleNotFoundError".  Is there any step that I must go through, so that I can import tensorflow? (I use nvidia Geforce RTX 3070 Mobile). Any suggestion/help will be helpful.

╰─λ python
Python 3.11.6 (main, Nov 14 2023, 09:36:21) [GCC 13.2.1 20230801] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'tensorflow'

Here is the tensorflow that I installed.

╰─λ pacman -Qi tensorflow
Name            : tensorflow-cuda
Version         : 2.15.0-4
Description     : Library for computation using data flow graphs for scalable machine learning (with CUDA)
Architecture    : x86_64
URL             : https://www.tensorflow.org/
Licenses        : APACHE
Groups          : None
Provides        : tensorflow
Depends On      : c-ares  pybind11  openssl  libpng  curl  giflib  icu  libjpeg-turbo  intel-oneapi-openmp  intel-oneapi-compiler-shared-runtime-libs  cuda  cudnn  nccl
Optional Deps   : tensorboard: Tensorflow visualization toolkit
Required By     : None
Optional For    : None
Conflicts With  : tensorflow
Replaces        : None
Installed Size  : 2,84 GiB
Packager        : Sven-Hendrik Haase <svenstaro@archlinux.org>
Build Date      : Kam 30 Nov 2023 11:24:34
Install Date    : Sen 11 Des 2023 07:45:14
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

Ex Deo Fide, Ex Fide Fiducia et Fortis

Offline

#2 2023-12-11 08:06:02

loqs
Member
Registered: 2014-03-06
Posts: 18,928

Re: How to use/import tensorflow-cuda in my python script

Offline

#3 2023-12-12 05:07:21

thunderel05
Member
Registered: 2018-04-23
Posts: 18

Re: How to use/import tensorflow-cuda in my python script

Thank you, It's finally solved.


Ex Deo Fide, Ex Fide Fiducia et Fortis

Offline

Board footer

Powered by FluxBB