项目地址:/qq547276542/Agriculture_KnowledgeGraph/qq547276542/Agriculture_KnowledgeGraph
1、python点击run或者debug的时候出现Type ‘manage.py help <subcommand>‘ for help on a specific subcommand.
Type 'manage.py help <subcommand>' for help on a specific subcommand.Available subcommands:[auth]changepasswordcreatesuperuser[contenttypes]remove_stale_contenttypes[django]checkcompilemessagescreatecachetabledbshelldiffsettingsdumpdataflushinspectdbloaddatamakemessagesmakemigrationsmigratesendtestemailshellshowmigrationssqlflushsqlmigratesqlsequenceresetsquashmigrationsstartappstartprojecttesttestserver[sessions]clearsessions[staticfiles]collectstaticfindstaticrunserverProcess finished with exit code 0
解决办法如下:
点击运行里的编辑配置,然后 在形参里添加runserver
2、ValueError:The following settings are not supported :{‘username‘: ‘neo4j“}
原因:究其根本是py2neo的版本不同,出现上述问题时是由于你的py2neo版本太高,新版本的写法不是这种
解决办法:安装低版本的py2neo 例如4.3.0
命令:
pip install py2neo==4.3.0 -i /simple
安装即可自动卸载之前的py2neo,并安装4.3.0版本的py2neo,问题解决。
3、AttributeError module 'time' has no attribute 'clock'
原因:Python3.8不再支持time.clock,但在调用时依然包含该方法;
解决办法:用time.perf_counter()替换
time.perf_counter()
参考网页:
1、python点击run或者debug的时候出现Type ‘manage.py help <subcommand>‘ for help on a specific subcommand._ZhaoJQ520的博客-CSDN博客/ZhaoJQ520/article/details/1088699582、
ValueError:The following settings are not supported :{‘username‘: ‘neo4j“}_带鱼工作室的博客-CSDN博客/liaoningxinmin/article/details/1166706093、 Python3.8 异常AttributeError module 'time' has no attribute 'clock'_搞怪小新-CSDN博客/jt_121217/article/details/104914923
如果觉得《本地搭建Agriculture_KnowledgeGraph农业知识图谱环境时遇到的问题及解决办法》对你有帮助,请点赞、收藏,并留下你的观点哦!