Skip to content

Commit c3e062e

Browse files
authored
Merge pull request #7471 from luotao1/build_doc
add how to update whl in build_from_source.md
2 parents 04bfed6 + 5528ec1 commit c3e062e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

doc/getstarted/build_and_install/build_from_source_cn.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ PaddlePaddle主要使用 `CMake <https://cmake.org>`_ 以及GCC, G++作为编译
3232
3333
pip install build/python/dist/*.whl
3434
35+
如果机器中已经安装过PaddlePaddle,有两种方法:
36+
37+
.. code-block:: bash
38+
39+
1. 先卸载之前的版本,再重新安装
40+
pip uninstall paddlepaddle
41+
pip install build/python/dist/*.whl
42+
43+
2. 直接升级到更新的版本
44+
pip install build/python/dist/*.whl -U
3545
3646
.. _run_test:
3747

doc/getstarted/build_and_install/build_from_source_en.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ 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, there are two methods:
40+
41+
.. code-block:: bash
42+
43+
1. uninstall and reinstall
44+
pip uninstall paddlepaddle
45+
pip install build/python/dist/*.whl
46+
47+
2. upgrade directly
48+
pip install build/python/dist/*.whl -U
3949
4050
.. _run_test:
4151

0 commit comments

Comments
 (0)