Package Details: python-tensorflow-git 1.12.1+54837+g03796cf1dda-1

Git Clone URL: (read-only, click to copy)
Package Base: tensorflow-git
Description: Library for computation using data flow graphs for scalable machine learning
Upstream URL:
Keywords: artificial_intelligence google machine_learning neural_network
Licenses: Apache
Submitter: swiftscythe
Maintainer: swiftscythe
Last Packager: swiftscythe
Votes: 2
Popularity: 0.000000
First Submitted: 2017-05-27 18:50
Last Updated: 2021-04-14 00:37

Dependencies (37)

Required by (0)

Sources (1)

Latest Comments

Kamilcuk commented on 2021-04-07 10:53

Umm, the prepare() function is kind-of invalid. You can't set environment variables from prepare(), I mean, you can set it, but you can't expect them to be visible in build() stage. The build fails when prepare() and build() are run in separate stages - like first makepkg -o and then followed by separate makepkg -e - makepkg -e will cause ask for some settings, because prepare() was not run. The build most notably fails to build properly when using yay AUR helper.

Consider applying like the following trivial patch to just move variable settings to be inside build():

@@ -42,7 +42,9 @@ prepare() {

   [ -d ${srcdir}/tensorflow-cuda ] && rm -rf ${srcdir}/tensorflow-cuda
     cp -r ${srcdir}/tensorflow ${srcdir}/tensorflow-cuda

+_set_build_env() {
   # make sure the proxy variables are in all caps, otherwise bazel ignores them
   export HTTP_PROXY=`echo $http_proxy | sed -e 's/\/$//'`
   export HTTPS_PROXY=`echo $https_proxy | sed -e 's/\/$//'`
@@ -96,6 +98,7 @@ prepare() {

 build() {
+  _set_build_env
   cd ${srcdir}/tensorflow
   export CC_OPT_FLAGS="-march=native -O3"
   export TF_NEED_CUDA=0


ruestique commented on 2020-05-21 21:54

have to make symlink in /usr/bin

sudo ln -s bazel bazel-3.0.0-linux-x86_64

ruestique commented on 2020-04-03 11:41

How to compile it with modern CPU's instructions support ?

evilarceus commented on 2020-01-21 08:37

Had to downgrade from Bazel 2.0.0 to 1.2.1. Otherwise, it fails with a Python "subprocess" error. This is not caused by the PKGBUILD, however.

riyies commented on 2018-05-31 21:22

Fails when using Bazel 0.13 java.lang.RuntimeException: Unrecoverable error while evaluating node 'PACKAGE:tensorflow/core/kernels'

Worked with Bazel 0.12. Refer to

progwolff commented on 2017-08-29 14:19

The build fails at boringssl.

Adding --copt=-O to the bazel options fixes the build.
See also:

jmbarrios commented on 2017-08-15 17:23

I can confirm that cudnn is necessary. There an issue on tensorflow repository asking for support cudnn 7 and cuda 9 (

petronny commented on 2017-08-14 08:27

I think cudnn should be cudnn6 now?

piratejon commented on 2017-06-30 04:00

python-tensorflow-cuda-git seems to depend on libglvnd which conflicts with my video driver. Is that necessary? tensorflow-cuda-git does not require it.