我写了一个网络应用程序,我想通过heroku部署它。我是新手 并且无法弄清楚这个问题。我已经搜索了一切 关于这个但是没有用。希望你们能给我一些建议。
这是我的requirements.txt
alabaster==0.7.10
asn1crypto==0.22.0
astroid==1.4.9
astropy==1.3.2
Babel==2.4.0
backports.shutil-get-terminal-size==1.0.0
comtypes==1.1.2
conda==4.3.21
contextlib2==0.5.5
cryptography==1.8.1
cycler==0.10.0
Cython==0.25.2
cytoolz==0.8.2
dask==0.14.3
datashape==0.5.4
decorator==4.0.11
distributed==1.16.3
dj-database-url==0.4.2
dj-static==0.0.6
docutils==0.13.1
entrypoints==0.2.2
et-xmlfile==1.0.1
fastcache==1.0.2
Flask==0.12.2
Flask-Cors==3.0.2
gevent==1.2.1
greenlet==0.4.12
gunicorn==19.7.1
h5py==2.7.0
.......
xlwings==0.10.4
xlwt==1.2.0
zict==0.1.2
psycopg2==2.6.1
当我收到错误时,我会删除requirements.txt中的第一行 我认为这只是一个,但事实更多的是没有找到的。每次我都会提交我改变要求.txt.I 不知道为什么以及如何调试。我希望它可以运行,我可以部署它。
这是我的错误
C:\Users\user\django_project>git push heroku master
Counting objects: 13090, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (9553/9553), done.
Writing objects: 100% (13090/13090), 118.21 MiB | 316.00 KiB/s, done.
Total 13090 (delta 2753), reused 12586 (delta 2529)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing python-3.6.3
remote: -----> Installing pip
remote: -----> Noticed cffi. Bootstrapping libffi.
remote: -----> Installing requirements with pip
remote: Collecting alabaster==0.7.10 (from -r /tmp/build_62ec9f69c217d0564bde759554f34c5d/requirements.txt (line 1))
remote: Downloading alabaster-0.7.10-py2.py3-none-any.whl
.......
remote: Could not find a version that satisfies the requirement comtypes==1.1.2 (from -r /tmp/build_62ec9f69c217d0564bde759554f34c5d/requirements.txt (line 19)) (from versions: 0.6.4, 1
.0.0, 1.1.0, 1.1.1, 1.1.3.post2)
remote: No matching distribution found for comtypes==1.1.2 (from -r /tmp/build_62ec9f69c217d0564bde759554f34c5d/requirements.txt (line 19))
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy...