Skip to content

Commit 74e1bb8

Browse files
add nightly build pip .whl url (#928)
1 parent 13c59c5 commit 74e1bb8

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,17 @@ python -c "import paddle; paddle.utils.run_check()"
163163

164164
- pip 安装
165165

166-
执行以下命令以 pip 的方式安装最新版本的 PaddleScience。
166+
执行以下命令以 pip 的方式安装 nightly build / release 版本的 PaddleScience。
167167
<!-- --8<-- [start:pip_install] -->
168168
``` shell
169-
pip install -U paddlesci
169+
# nightly build
170+
pip install https://paddle-qa.bj.bcebos.com/PaddleScience/whl/latest/dist/paddlesci-0.0.0-py3-none-any.whl
171+
# release
172+
# pip install -U paddlesci
170173
```
171174
<!-- --8<-- [end:pip_install] -->
172175

173-
- 设置 PYTHONPATH
176+
- 设置 PYTHONPATH 并手动安装 requirements
174177

175178
如果在您的环境中,上述两种方式都无法正常安装,则可以选择本方式,在终端内将环境变量 `PYTHONPATH` 临时设置为 `PaddleScience`**绝对路径**,如下所示。
176179

docs/zh/install_setup.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# pull image
1111
docker pull hydrogensulfate/paddlescience
1212

13-
# create a container named 'paddlescience' based on pulled image
13+
# create a container named 'paddlescience_container' based on pulled image
1414
## docker version < 19.03
1515
nvidia-docker run --name paddlescience_container --network=host -it --shm-size 64g hydrogensulfate/paddlescience:latest /bin/bash
1616

@@ -88,13 +88,15 @@
8888
``` sh
8989
cd PaddleScience/
9090
export PYTHONPATH=$PYTHONPATH:$PWD
91+
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple # manually install requirements
9192
```
9293

9394
=== "Windows"
9495

9596
``` sh
9697
cd PaddleScience/
9798
set PYTHONPATH=%cd%
99+
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple # manually install requirements
98100
```
99101

100102
上述方式的优点是步骤简单无需安装,缺点是当环境变量生效的终端被关闭后,需要重新执行上述命令设置 `PYTHONPATH` 才能再次使用 PaddleScience,较为繁琐。

0 commit comments

Comments
 (0)