未验证 提交 47101cfb 编写于 作者: K Kaipeng Deng 提交者: GitHub

fix install error on Python36 (#3083)

上级 0fe906d1
...@@ -101,6 +101,8 @@ pip install -r requirements.txt ...@@ -101,6 +101,8 @@ pip install -r requirements.txt
```pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI``` ```pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI```
2. If you are using Python <= 3.6, `pycocotools` installing may failed with error like `distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('cython>=0.27.3')`, please install `cython` firstly, for example `pip install cython`
After installation, make sure the tests pass: After installation, make sure the tests pass:
```shell ```shell
......
...@@ -91,6 +91,8 @@ pip install -r requirements.txt ...@@ -91,6 +91,8 @@ pip install -r requirements.txt
```pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI``` ```pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI```
2. 若您使用的是Python <= 3.6的版本安装`pycocotools`可能会报错`distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('cython>=0.27.3')`, 您可通过先安装`cython`如`pip install cython`解决该问题
安装后确认测试通过: 安装后确认测试通过:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册