File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -163,14 +163,17 @@ python -c "import paddle; paddle.utils.run_check()"
163
163
164
164
- pip 安装
165
165
166
- 执行以下命令以 pip 的方式安装最新版本的 PaddleScience。
166
+ 执行以下命令以 pip 的方式安装 nightly build / release 版本的 PaddleScience。
167
167
< ! -- --8< -- [start:pip_install] -->
168
168
` ` ` 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
170
173
` ` `
171
174
< ! -- --8< -- [end:pip_install] -->
172
175
173
- - 设置 PYTHONPATH
176
+ - 设置 PYTHONPATH 并手动安装 requirements
174
177
175
178
如果在您的环境中,上述两种方式都无法正常安装,则可以选择本方式,在终端内将环境变量 ` PYTHONPATH` 临时设置为 ` PaddleScience` 的** 绝对路径** ,如下所示。
176
179
Original file line number Diff line number Diff line change 10
10
# pull image
11
11
docker pull hydrogensulfate/paddlescience
12
12
13
- # create a container named 'paddlescience ' based on pulled image
13
+ # create a container named 'paddlescience_container ' based on pulled image
14
14
## docker version < 19.03
15
15
nvidia-docker run --name paddlescience_container --network=host -it --shm-size 64g hydrogensulfate/paddlescience:latest /bin/bash
16
16
88
88
` ` ` sh
89
89
cd PaddleScience/
90
90
export PYTHONPATH=$PYTHONPATH :$PWD
91
+ pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple # manually install requirements
91
92
` ` `
92
93
93
94
=== " Windows"
94
95
95
96
` ` ` sh
96
97
cd PaddleScience/
97
98
set PYTHONPATH=%cd%
99
+ pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple # manually install requirements
98
100
` ` `
99
101
100
102
上述方式的优点是步骤简单无需安装,缺点是当环境变量生效的终端被关闭后,需要重新执行上述命令设置 ` PYTHONPATH` 才能再次使用 PaddleScience,较为繁琐。
You can’t perform that action at this time.
0 commit comments