Dependencies for developing Shapely are listed in requirements-dev.txt. Cython and Numpy are not required for production installations, only for development. Use of a virtual environment is strongly recommended.
在requirements-dev.txt中列出了开发Shapely的依赖项。Cython和Numpy在生产中是不需要的,只用于开发。强烈建议使用虚拟环境。
$ virtualenv .
$ source bin/activate
(env)$ pip install -r requirements-dev.txt
(env)$ pip install -e .
The project uses pytest to run Shapely’s suite of unittests and doctests.
该项目使用pytest来运行Shapely的单元测试和测试套件。
(env)$ python -m pytest