Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我想在django中可视化数据库图,但在pygraphviz中存在问题_Django_Database_Diagram - Fatal编程技术网

我想在django中可视化数据库图,但在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

我试图用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

但我得到了这个错误:

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
不要给每个图书馆都打电话

有点晚了,但希望这会有帮助,干杯