# dopamine-rl 3.1.7 Webots 整合
###### tags: dopamine
> Pypi: https://pypi.org/project/dopamine-rl/
## 使用須知
27/07/2020: Dopamine now runs on TensorFlow 2. However, Dopamine is still written as TensorFlow 1.X code. This means your project may need to explicity disable TensorFlow 2 behaviours with:
``` python
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
```
if you are using custom entry-point for training your agent. The migration to TensorFlow 2 also means that Dopamine no longer supports Python 2.
## 安裝須知
OS: Ubuntu 18.04
### Webots
Webots採用撰文時間最新版本[R2020b-rev1](https://github.com/cyberbotics/webots/releases/tag/R2020b-rev1)
詳細安裝請參閱官網
### Dopamine
我們合適Install via source,因為需要與webots整合,不宜直接用<code>pip install dopamine-rl</code>。屆時將提供給資通所使用宜方便使用與安裝dopamine與webots整合版本。
1. Download the Dopamine source.
<code>git clone https://github.com/google/dopamine.git</code>code>
2. Setup the environment and install Dopamine's dependencies
<code>pip install -U pip</code>
<code>pip install -r dopamine/requirements.txt</code>
### 問題
