本地搭建Agriculture_KnowledgeGraph农业知识图谱环境时遇到的问题及解决办法
項目地址:https://github.com/qq547276542/Agriculture_KnowledgeGraphhttps://github.com/qq547276542/Agriculture_KnowledgeGraph
1、python點擊run或者debug的時候出現(xiàn)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的版本不同,出現(xiàn)上述問題時是由于你的py2neo版本太高,新版本的寫法不是這種
解決辦法:安裝低版本的py2neo 例如4.3.0
命令:
pip install py2neo==4.3.0 -i https://pypi.douban.com/simple安裝即可自動卸載之前的py2neo,并安裝4.3.0版本的py2neo,問題解決。
3、AttributeError module 'time' has no attribute 'clock'
原因:Python3.8不再支持time.clock,但在調(diào)用時依然包含該方法;
解決辦法:用time.perf_counter()替換
time.perf_counter()參考網(wǎng)頁:
1、python點擊run或者debug的時候出現(xiàn)Type ‘manage.py help <subcommand>‘ for help on a specific subcommand._ZhaoJQ520的博客-CSDN博客https://blog.csdn.net/ZhaoJQ520/article/details/1088699582、
ValueError:The following settings are not supported :{‘username‘: ‘neo4j“}_帶魚工作室的博客-CSDN博客https://blog.csdn.net/liaoningxinmin/article/details/1166706093、 Python3.8 異常AttributeError module 'time' has no attribute 'clock'_搞怪小新-CSDN博客https://blog.csdn.net/jt_121217/article/details/104914923
總結(jié)
以上是生活随笔為你收集整理的本地搭建Agriculture_KnowledgeGraph农业知识图谱环境时遇到的问题及解决办法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: .NET 推荐书籍
- 下一篇: 深度解析用户画像标签体系构建方法