installation_en.md 1.3 KB
Newer Older
D
Daniel Yang 已提交
1 2
# Installation

W
wuzewu 已提交
3
## Environment Dependency
D
Daniel Yang 已提交
4 5 6

* Python>=3.6
* PaddlePaddle>=2.0.0rc
W
wuzewu 已提交
7 8 9 10 11 12 13
```shell
# Install gpu version of paddlepaddle
pip install paddlepaddle-gpu==2.0.0rc

# Or install cpu version of paddlepaddle
# pip install paddlepaddle==2.0.0rc
```
D
Daniel Yang 已提交
14 15 16 17
* Operating System: Windows/Mac/Linux

## Installation Command

W
wuzewu 已提交
18
Before installing the PaddleHub, install the PaddlePaddle deep learning framework first. For more installation instructions, refer to [PaddleQuickInstall](https://www.paddlepaddle.org.cn/install/quick/zh/2.0rc-windows-pip)
D
Daniel Yang 已提交
19 20

```shell
P
paopjian 已提交
21
pip install paddlehub==2.0.0b2
D
Daniel Yang 已提交
22 23 24 25 26 27 28 29 30 31 32 33
```

In addition to the above dependences, PaddleHub's pre-training models and pre-set datasets need to be downloaded through connecting to the server. Make sure that the computer can access the network. You can run PaddleHub offline if the relevant datasets and pre-set models are already available locally.

**NOTE:** Make sure that the computer can access the external network when the PaddleHub is used to download datasets and pre-training models. You can use `server_check()` to check the connection status between the local and remote PaddleHub-Server in the following methods:

```python
import paddlehub
paddlehub.server_check()
# If OK, reply "Request Hub-Server successfully".
# If not OK, reply "Hub-Server unsuccessfully".
```