本地搭建Agriculture_KnowledgeGraph农业知识图谱环境时遇到的问题及解决办法

项目地址:https://github.com/qq547276542/Agriculture_KnowledgeGraphicon-default.png?t=LA92https://github.com/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]
    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博客icon-default.png?t=LA92https://blog.csdn.net/ZhaoJQ520/article/details/1088699582、

ValueError:The following settings are not supported :{‘username‘: ‘neo4j“}_带鱼工作室的博客-CSDN博客icon-default.png?t=LA92https://blog.csdn.net/liaoningxinmin/article/details/1166706093、 Python3.8 异常AttributeError module 'time' has no attribute 'clock'_搞怪小新-CSDN博客icon-default.png?t=LA92https://blog.csdn.net/jt_121217/article/details/104914923

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值