我想在redash中编写python代码并在其中安装其模块
我用worker容器编辑了docker compose文件 工作人员:
image : redash / redash: 2.0.1.b3080
# Add
# Add the library you want to add with pip install.
command : >
scheduler &&
basch -c '
pip install mysql.connector
'
environment:
PYTHONUNBUFFERED: 0
REDASH_LOG_LEVEL: "INFO"
REDASH_REDIS_URL: "redis://redis:6379/0"
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"
REDASH_ADDITIONAL_QUERY_RUNNERS: "redash.query_runner.python"
QUEUES: "queries,scheduled_queries,celery"
WORKERS_COUNT: 2
REDASH_HOST: "http://localhost"
在这篇文章之后http://kzkohashi.hatenablog.com/entry/2017/12/09/224516 但是当导入我的模块来编写代码时,我得到一个错误:没有名为“my module name”的模块
目前没有回答
相关问题 更多 >
编程相关推荐