Skip to content

fix installation of TensorFlow in some environments, by setting $PYTHONNOUSERSITE (& more)#2002

Merged
akesandgren merged 3 commits intoeasybuilders:developfrom
Flamefire:fix_tf_python
Apr 3, 2020
Merged

fix installation of TensorFlow in some environments, by setting $PYTHONNOUSERSITE (& more)#2002
akesandgren merged 3 commits intoeasybuilders:developfrom
Flamefire:fix_tf_python

Conversation

@Flamefire
Copy link
Copy Markdown
Contributor

In easybuilders/easybuild-easyconfigs#9991 I noticed TensorFlow still uses the local user repository which we usually prevent with PYTHONNOUSERSITE=1 but (of course) TensorFlow needs it slightly different.

Also 2 minor fixes:

  • TF 1.12.1 introduced an experimental download clang option which is disabled by default. Explicitely disable it to avoid the prompt
  • AWS support was enabled although it should be disabled. Previously it was TF_NEED_AWS=0 but no it is an explicit switch.

@Flamefire
Copy link
Copy Markdown
Contributor Author

This has been tested with easybuilders/easybuild-easyconfigs#9991 (4 TF versions) and 2.1.0 (fosscuda) so this does seemingly work ok

@Flamefire
Copy link
Copy Markdown
Contributor Author

@boegel Can we have this for 4.2.0 please? The failure is annoying and kinda hard to find as it happens when you e.g. install tensorflow_datasets into the user environment

Copy link
Copy Markdown
Contributor

@akesandgren akesandgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akesandgren akesandgren added this to the next release (4.2.0) milestone Apr 3, 2020
@akesandgren
Copy link
Copy Markdown
Contributor

Going in, thanks @Flamefire!

@akesandgren akesandgren merged commit 3ade7ae into easybuilders:develop Apr 3, 2020
@Flamefire Flamefire deleted the fix_tf_python branch April 3, 2020 06:40
@boegel boegel changed the title Fix TensorFlow in some environments fix installation of TensorFlow in some environments, by setting $PYTHONNOUSERSITE (& more) Apr 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants