我想在django中可视化数据库图,但在pygraphviz中存在问题
我试图用django可视化数据库图 在Docker文件中,我有: 运行apt get install-y python3 dev graphviz libgraphviz dev 运行apt get install-y python pygraphviz pkg config 在requirements.txt中,我有: django、psycopg2、djangorestframework、PyJWT、gunicorn、Channel、django扩展、graphviz、cGraph、pygraphviz 但我得到了这个错误:我想在django中可视化数据库图,但在pygraphviz中存在问题,django,database,diagram,Django,Database,Diagram,我试图用django可视化数据库图 在Docker文件中,我有: 运行apt get install-y python3 dev graphviz libgraphviz dev 运行apt get install-y python pygraphviz pkg config 在requirements.txt中,我有: django、psycopg2、djangorestframework、PyJWT、gunicorn、Channel、django扩展、graphviz、cGraph、pygr
Building wheel for pygraphviz (setup.py): started
Building wheel for pygraphviz (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = ...
----------------------------------------
ERROR: Failed building wheel for pygraphviz
Running setup.py clean for pygraphviz
Successfully built cGraph
Failed to build pygraphviz ... ERROR: Service 'web' failed to build: The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1
你知道这个错误吗?我想你的软件包错了,试试吧
docker-compose <-f local.yml> run --rm <containername> pip install graphviz
同时将Dockerfile运行更改为:
RUN pip install -r /requirements/local.txt
不要给每个图书馆都打电话
有点晚了,但希望能有所帮助,干杯。我想你的套餐搞错了,试试吧
docker-compose <-f local.yml> run --rm <containername> pip install graphviz
同时将Dockerfile运行更改为:
RUN pip install -r /requirements/local.txt
不要给每个图书馆都打电话
有点晚了,但希望这会有帮助,干杯