Skip to content

Commit

Permalink
Add upper-bound for Tensorflow version (<2.0.0) (#499)
Browse files Browse the repository at this point in the history
* Add upper-bound for tensorflow version (<2.0.0)

* Update docs on required tensorflow versions
  • Loading branch information
Miffyli authored and araffin committed Oct 6, 2019
1 parent 0017e62 commit feeaff4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ Documentation: https://stable-baselines.readthedocs.io/en/master/guide/rl_zoo.ht

## Installation

**Note:** Stabe-Baselines supports Tensorflow versions from 1.8.0 to 1.14.0. Support for Tensorflow 2 API is planned.

### Prerequisites
Baselines requires python3 (>=3.5) with the development headers. You'll also need system packages CMake, OpenMPI and zlib. Those can be installed as follows

Expand Down
6 changes: 6 additions & 0 deletions docs/guide/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ Baselines requires python3 (>=3.5) with the development headers. You'll
also need system packages CMake, OpenMPI and zlib. Those can be
installed as follows

.. note::

Stable-Baselines supports Tensorflow versions from 1.8.0 to 1.14.0, and does not work on
Tensorflow versions 2.0.0 and above. Support for Tensorflow 2 API is planned.


Ubuntu
~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

tf_dependency = []
if install_tf:
tf_dependency = ['tensorflow-gpu>=1.8.0'] if tf_gpu else ['tensorflow>=1.8.0']
tf_dependency = ['tensorflow-gpu>=1.8.0,<2.0.0'] if tf_gpu else ['tensorflow>=1.8.0,<2.0.0']
if tf_gpu:
print("A GPU was detected, tensorflow-gpu will be installed")

Expand Down

0 comments on commit feeaff4

Please sign in to comment.