我正在尝试将我的 Python 应用程序推送到 Heroku,但似乎pywin32没有安装:
Counting objects: 519, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (483/483), done.
Writing objects: 100% (519/519), 7.55 MiB | 136.00 KiB/s, done.
Total 519 (delta 247), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing python-3.6.4
remote: -----> Installing pip
remote: -----> Installing requirements with pip
remote: Collecting aioredis==1.0.0 (from -r /tmp/build_9cc549609c727e83c7b487b43fec0a2e/requirements.txt (line 1))
remote: Downloading https://files.pythonhosted.org/packages/e6/15/79bc11213e1b918f152914e1de96e5610961da3709e3ca8cc650e00b8f4e/aioredis-1.0.0-py3-none-any.whl (59kB) …Run Code Online (Sandbox Code Playgroud) 我在使用 Heroku 时遇到了这个问题。我正在尝试将我的应用程序推送到heroku,但heroku似乎无法安装pywin32=227,但我不知道为什么会发生这种情况。我希望有人能帮助我解决这个问题。
要求.txt:
appdirs==1.4.3
asgiref==3.2.3
awsebcli==3.17.1
botocore==1.14.17
cement==2.8.2
certifi==2019.11.28
chardet==3.0.4
colorama==0.3.9
distlib==0.3.0
dj-database-url==0.5.0
Django==2.1.15
django-pyodbc-azure==2.1.0.0
docutils==0.15.2
filelock==3.0.12
future==0.16.0
gunicorn==20.0.4
idna==2.7
importlib-metadata==1.5.0
jmespath==0.9.5
pathspec==0.5.9
Pillow==7.0.0
psycopg2==2.8.4
pyodbc==4.0.30
pypiwin32==223
python-dateutil==2.8.0
python-decouple==3.3
pytz==2019.3
pywin32==227
PyYAML==5.2
requests==2.20.1
semantic-version==2.5.0
six==1.11.0
sqlparse==0.3.1
stripe==2.43.0
termcolor==1.1.0
urllib3==1.24.3
virtualenv==20.0.7
wcwidth==0.1.8
whitenoise==5.0.1
zipp==3.1.0
Run Code Online (Sandbox Code Playgroud)
我正在 Windows 10 Professional 上进行开发,该应用程序在那里运行良好:
C:\Users\GuGarza\test>git push heroku master
Enumerating objects: 363, done.
Counting objects: 100% (363/363), done.
Delta compression using up to 4 threads
Compressing objects: 100% (348/348), done.
Writing objects: 100% (363/363), 257.21 KiB …Run Code Online (Sandbox Code Playgroud)