From 763a8f2dff407fd2d560b41c76354712ec056748 Mon Sep 17 00:00:00 2001 From: Guanghua Yu <742925032@qq.com> Date: Sat, 11 Apr 2020 11:37:29 +0800 Subject: [PATCH] fix windows python path (#480) --- docs/tutorials/INSTALL.md | 13 ++++++++++--- docs/tutorials/INSTALL_cn.md | 11 +++++++++-- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/docs/tutorials/INSTALL.md b/docs/tutorials/INSTALL.md index f8bd24b71..a411be02d 100644 --- a/docs/tutorials/INSTALL.md +++ b/docs/tutorials/INSTALL.md @@ -86,14 +86,21 @@ Required python packages are specified in [requirements.txt](https://github.com/ pip install -r requirements.txt ``` -**Make sure the tests pass:** +**Specify the current Python path:** +```shell +# In Linux/Mac +export PYTHONPATH=$PYTHONPATH:. +# In windows +set PYTHONPATH=%PYTHONPATH%;. ``` -export PYTHONPATH=`pwd`:$PYTHONPATH + +**Make sure the tests pass:** + +```shell python ppdet/modeling/tests/test_architectures.py ``` - ## Datasets PaddleDetection includes support for [COCO](http://cocodataset.org) and [Pascal VOC](http://host.robots.ox.ac.uk/pascal/VOC/) by default, please follow these instructions to set up the dataset. diff --git a/docs/tutorials/INSTALL_cn.md b/docs/tutorials/INSTALL_cn.md index eeb6e03f9..222dc7d8e 100644 --- a/docs/tutorials/INSTALL_cn.md +++ b/docs/tutorials/INSTALL_cn.md @@ -82,14 +82,21 @@ Python依赖库在[requirements.txt](https://github.com/PaddlePaddle/PaddleDetec pip install -r requirements.txt ``` +**指定当前Python路径:** + +```shell +# 在Linux/Mac系统下运行: +export PYTHONPATH=$PYTHONPATH:. +# 在windows系统下运行: +set PYTHONPATH=%PYTHONPATH%;. +``` + **确认测试通过:** ``` -export PYTHONPATH=`pwd`:$PYTHONPATH python ppdet/modeling/tests/test_architectures.py ``` - ## 数据集 -- GitLab