Baselines: Baselines on Windows installation failure: TensorFlow AssertionError

Created on 2 Sep 2018  Â·  4Comments  Â·  Source: openai/baselines

Hello,

I'm trying to install Baselines on Windows 10. All the dependencies have been installed, however, I get this simple assertion error:

"AssertionError: TensorFlow needed, of version above 1.4"

Which would make sense, if I didn't have TensorFlow installed:
">>> import tensorflow

print(tensorflow.__version__)
1.10.0"

Any hints?

Not to mention, I have Python 3.7.0 installed, but Baseline's installation keeps hinting:

"print('This Python is only compatible with Python 3, but you are running '
'Python {}. The installation will likely fail.'.format(sys.version_info.major))"

All 4 comments

Hi @GBanlik! Short version is this - we never really tested baselines on windows... So proceed at your own risk :) That being said, if you look in setup.py, lines 47-52, we are actually comparing tensorflow.__version__ to 1.4.0, not tensorflow.version. Interestingly, my osx and linux installations of tensorflow don't even have attribute version. Anyways, if you know that you have tensorflow, and its version is above 1.4, you can comment that entire try-except block out. But again - we have not tested it on windows, there could be some further problems down the line.

I have a similar issue installing baselines on google colab.
I get ‘AssertionError: TensorFlow needed, of version above 1.4’.
I don’t understand why it’s asking for TF 1.4 when TF is only on version 1.1?
What am I missing here?

@PorkPy if your use case is not sensitive to tensorflow version, I would recommend explicitly installing tensorflow of version above 1.1 (via !pip install tensorflow --upgrade in colab notebook). Baselines installation does not install tensorflow automatically because there are many valid ways if installing tensorflow (for instance, tensorflow vs tensorflow-gpu, release build vs nightly) and we don't want to accidentally override whatever installation the user has in mind; simultaneously, there are some features in baselines that require tensorflow version >=1.4.

@pzhokhov

Wouldn't the OpenMPI dependency break baselines on Windows?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

damienlancry picture damienlancry  Â·  7Comments

HitLyn picture HitLyn  Â·  9Comments

watts4speed picture watts4speed  Â·  7Comments

dqii picture dqii  Â·  9Comments

Sumsamkhan picture Sumsamkhan  Â·  26Comments