Skip to content

Commit 5528ec1

Browse files
committed
add another method of update whl
1 parent 0fad764 commit 5528ec1

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

doc/getstarted/build_and_install/build_from_source_cn.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,15 @@ PaddlePaddle主要使用 `CMake <https://cmake.org>`_ 以及GCC, G++作为编译
3232
3333
pip install build/python/dist/*.whl
3434
35-
如果机器中已经安装过PaddlePaddle,请卸载再安装
35+
如果机器中已经安装过PaddlePaddle,有两种方法
3636

3737
.. code-block:: bash
3838
39+
1. 先卸载之前的版本,再重新安装
40+
pip uninstall paddlepaddle
41+
pip install build/python/dist/*.whl
42+
43+
2. 直接升级到更新的版本
3944
pip install build/python/dist/*.whl -U
4045
4146
.. _run_test:

doc/getstarted/build_and_install/build_from_source_en.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,15 @@ machine or copy it to the target machine.
3636
3737
pip install build/python/dist/*.whl
3838
39-
If the machine has installed PaddlePaddle before, please uninstall it first and reinstall it again.
39+
If the machine has installed PaddlePaddle before, there are two methods:
4040

4141
.. code-block:: bash
4242
43+
1. uninstall and reinstall
44+
pip uninstall paddlepaddle
45+
pip install build/python/dist/*.whl
46+
47+
2. upgrade directly
4348
pip install build/python/dist/*.whl -U
4449
4550
.. _run_test:

0 commit comments

Comments
 (0)