City Simulator and OpenCity databases Python SDK
pip install pycitysim
安装 grpcio 的过程中,如果出现: When installing grpcio, you may encounter the following error:
pip install fails with "No such file or directory: 'c++': 'c++'"
代表缺少 C++相关依赖。在 Debian 镜像上,执行: It means that C++ related dependencies are missing. On the Debian image, execute:
sudo apt install build-essential
在 alpine 镜像上,执行: On the alpine image, execute:
apk add g++
- pycitysim.apphub: OpenCity后端交互库。OpenCity backend interaction package.
- pycitysim.map: 地图数据操作库。Map data operation package.
- pycitysim.routing: 路径规划操作库。Routing operation package.
- pycitysim.sim: 模拟器gRPC接入客户端。City Simulator gRPC access client.
- pycitysim.urbankg: 城市知识图谱访问模块。City knowledge graph access module.
访问 examples 查看示例代码。