From 5528ec13212a1171c8274769b3b6e1842cc6861f Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Fri, 12 Jan 2018 17:10:52 +0800 Subject: [PATCH] add another method of update whl --- doc/getstarted/build_and_install/build_from_source_cn.rst | 7 ++++++- doc/getstarted/build_and_install/build_from_source_en.rst | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/getstarted/build_and_install/build_from_source_cn.rst b/doc/getstarted/build_and_install/build_from_source_cn.rst index 1e75087462..71904dc41e 100644 --- a/doc/getstarted/build_and_install/build_from_source_cn.rst +++ b/doc/getstarted/build_and_install/build_from_source_cn.rst @@ -32,10 +32,15 @@ PaddlePaddle主要使用 `CMake `_ 以及GCC, G++作为编译 pip install build/python/dist/*.whl -如果机器中已经安装过PaddlePaddle,请卸载再安装: +如果机器中已经安装过PaddlePaddle,有两种方法: .. code-block:: bash + 1. 先卸载之前的版本,再重新安装 + pip uninstall paddlepaddle + pip install build/python/dist/*.whl + + 2. 直接升级到更新的版本 pip install build/python/dist/*.whl -U .. _run_test: diff --git a/doc/getstarted/build_and_install/build_from_source_en.rst b/doc/getstarted/build_and_install/build_from_source_en.rst index fde8a18daa..27f73b2e2c 100644 --- a/doc/getstarted/build_and_install/build_from_source_en.rst +++ b/doc/getstarted/build_and_install/build_from_source_en.rst @@ -36,10 +36,15 @@ machine or copy it to the target machine. pip install build/python/dist/*.whl -If the machine has installed PaddlePaddle before, please uninstall it first and reinstall it again. +If the machine has installed PaddlePaddle before, there are two methods: .. code-block:: bash + 1. uninstall and reinstall + pip uninstall paddlepaddle + pip install build/python/dist/*.whl + + 2. upgrade directly pip install build/python/dist/*.whl -U .. _run_test: -- GitLab