在heroku中安装模块



我正在尝试使用heroku作为Python的telegram bot。一切都很好,除了我不能安装MetaTrader5模块。当我键入git push heroku master命令时,PowerShell中的答案是:

Enumerating objects: 59, done.
Counting objects: 100% (59/59), done.
Delta compression using up to 4 threads
Compressing objects: 100% (50/50), done.
Writing objects: 100% (59/59), 417.63 KiB | 5.42 MiB/s, done.
Total 59 (delta 19), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing python-3.7.6
remote: -----> Installing pip
remote: -----> Installing SQLite3
remote: Sqlite3 successfully installed.
remote: -----> Installing requirements with pip
remote:        Collecting certifi==2019.11.28
remote:          Downloading certifi-2019.11.28-py2.py3-none-any.whl (156 kB)
remote:        Collecting chardet==3.0.4
remote:          Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
remote:        Collecting idna==2.9
remote:          Downloading idna-2.9-py2.py3-none-any.whl (58 kB)
remote:        Collecting int-date==0.1.8
remote:          Downloading int_date-0.1.8-py2.py3-none-any.whl (5.0 kB)
remote:        ERROR: Could not find a version that satisfies the requirement MetaTrader5==5.0.24 (from -r /tmp/build_4e6218f160af939bdbff3e12742a3458/requirements.txt (line 5)) (from versions: none)
remote:        ERROR: No matching distribution found for MetaTrader5==5.0.24 (from -r /tmp/build_4e6218f160af939bdbff3e12742a3458/requirements.txt (line 5))
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to telegram-bot-2567.
remote:
To https://git.heroku.com/telegram-bot-2567.git
! [remote rejected] master -> master (pre-receive hook declined)

在我的需求文本中,我有MetaTrader5==5.0.24。我已经在我自己的电脑上使用了这个模块,但我不能在heroku上使用它。有什么解决办法吗?

您尝试安装MetaTrader5软件包的heroku机器是基于linux的。此软件包(加上MetaTrader5终端客户端(仅适用于Windows,除非您在linux上使用Wine。

在我直接在windows环境中安装软件包(使用CMD(之前,我也遇到了同样的错误。

相关内容

  • 没有找到相关文章

最新更新