栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

本地搭建Agriculture

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

本地搭建Agriculture

项目地址:https://github.com/qq547276542/Agriculture_KnowledgeGraphhttps://github.com/qq547276542/Agriculture_KnowledgeGraph

1、python点击run或者debug的时候出现Type ‘manage.py help <subcommand>‘ for help on a specific subcommand.

Type 'manage.py help ' for help on a specific subcommand.

Available subcommands:

[auth]
    changepassword
    createsuperuser

[contenttypes]
    remove_stale_contenttypes

[django]
    check
    compilemessages
    createcachetable
    dbshell
    diffsettings
    dumpdata
    flush
    inspectdb
    loaddata
    makemessages
    makemigrations
    migrate
    sendtestemail
    shell
    showmigrations
    sqlflush
    sqlmigrate
    sqlsequencereset
    squashmigrations
    startapp
    startproject
    test
    testserver

[sessions]
    clearsessions

[staticfiles]
    collectstatic
    findstatic
    runserver

Process 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 https://pypi.douban.com/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博客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

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/655689.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号