我试图从github执行一个名为plagcomps的包
我尝试使用以下命令执行extrinsic_testing模块:
python -m plagcomps.extrinsic.extrinsic_testing我收到如下错误:
/usr/bin/python: No module named dbconstants我试图寻找这个包,但无法在使用pip找到它。
或者还有其他我想念的东西?
I am trying to execute a package from github called plagcomps
I try to execute the extrinsic_testing module using the following command:
python -m plagcomps.extrinsic.extrinsic_testingI get an error as follows:
/usr/bin/python: No module named dbconstantsI am trying to look for this package but cant find it in using pip.
Or is there something else I am missing?
最满意答案
查看产生异常的文件 (下次请发布完整的回溯):
from ..dbconstants import username, password, dbname ... url = "postgresql://%s:%s@%s" % (username, password, dbname)它似乎希望您创建一个名为dbconstants.py的文件, dbconstants.py包含以下内容:
username = '...' password = '...' dbname = '...'用有关postgres数据库的信息替换点。
Looking at the file that produces the exception (next time, please post the full traceback):
from ..dbconstants import username, password, dbname ... url = "postgresql://%s:%s@%s" % (username, password, dbname)It seems that it expects you to create a file named dbconstants.py with the following content:
username = '...' password = '...' dbname = '...'Replace the dots with the information about your postgres database.
更多推荐
发布评论