Python 2.7 在heroku上使用pymssql部署Python瓶子应用程序

Python 2.7 在heroku上使用pymssql部署Python瓶子应用程序,python-2.7,heroku,freetds,pymssql,Python 2.7,Heroku,Freetds,Pymssql,我在heroku上部署我的网站时遇到了问题。我正在使用以下生成包,但仍有错误: heroku config:add BUILDPACK_URL=https://github.com/amanjain/heroku-buildpack-python-freetds-pymssql.git 这是我一直得到的错误: remote: warning: no files found matching 'pymssql_version.py' remote: w

我在heroku上部署我的网站时遇到了问题。我正在使用以下生成包,但仍有错误:

heroku config:add BUILDPACK_URL=https://github.com/amanjain/heroku-buildpack-python-freetds-pymssql.git
这是我一直得到的错误:

remote:            warning: no files found matching 'pymssql_version.py'
remote:            warning: no files found matching 'win32/freetds.zip'
remote:            warning: no previously-included files matching '*' found under directory 'docs/_build'
remote:        Successfully installed pymssql
remote:        Cleaning up...
remote: -----> Installing dependencies with pip
remote:        Downloading/unpacking bottle==0.12.9 (from -r requirements.txt (line 1))
remote:          Running setup.py (path:/tmp/pip_build_u13919/bottle/setup.py) egg_info for package bottle
remote:            
remote:        Downloading/unpacking DateTime==4.0.1 (from -r requirements.txt (line 2))
remote:          Running setup.py (path:/tmp/pip_build_u13919/DateTime/setup.py) egg_info for package DateTime
remote:            
remote:        Downloading/unpacking functools32==3.2.3.post2 (from -r requirements.txt (line 3))
remote:          Could not find a version that satisfies the requirement functools32==3.2.3.post2 (from -r requirements.txt (line 3)) (from versions: 3.2.3-1, 3.2.3-1, 3.2.3-2, 3.2.3-2)
remote:        Cleaning up...
remote:        No distributions matching the version for functools32==3.2.3.post2 (from -r requirements.txt (line 3))
remote:        Storing debug log for failure in /app/.pip/pip.log
remote: 
remote:  !     Push rejected, failed to compile Python + FreeTDS + pymssql app
remote: 
remote: Verifying deploy...
remote: 
remote: !   Push rejected to shelf2xerotest1.
remote: 
To https://git.heroku.com/shelf2xerotest1.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to     
'https://git.heroku.com/shelf2xerotest1.git'

还有其他人遇到过这个问题吗?

看起来buildpack是为Linux系统构建的,而且您似乎正在尝试在Windows上安装它

在跟踪日志中,它似乎在win32目录中查找FreeTDS构建:

warning: no files found matching 'win32/freetds.zip'

它似乎也是安装Python2.7。如果您刚刚开始,我强烈建议您使用Python3。祝你好运。

看起来buildpack是为Linux系统构建的,而且似乎你正在尝试在Windows上安装它

在跟踪日志中,它似乎在win32目录中查找FreeTDS构建:

warning: no files found matching 'win32/freetds.zip'

它似乎也是安装Python2.7。如果您刚刚开始,我强烈建议您使用Python3。祝你好运。

Windows?什么是希罗库!Python 3?这个答案毫无意义。这正是我从输出中指出的!这没有道理。为什么要找win32库?为什么要在问题中使用Python-2.7标记?这不是win32编译错误,而是说没有名为“win32/freetds.zip”的文件。与在windows上运行无关。日志中的所有路径都是Unix路径。Python2.7没有任何问题,请不要用提倡Python3来笼统地回答这个问题,它很懒惰;2有一个EOL,如果有人开始选择,3是最好的选择。羞耻之墙->超级大国!窗户?什么是希罗库!Python 3?这个答案毫无意义。这正是我从输出中指出的!这没有道理。为什么要找win32库?为什么要在问题中使用Python-2.7标记?这不是win32编译错误,而是说没有名为“win32/freetds.zip”的文件。与在windows上运行无关。日志中的所有路径都是Unix路径。Python2.7没有任何问题,请不要用提倡Python3来笼统地回答这个问题,它很懒惰;2有一个EOL,如果有人开始选择,3是最好的选择。羞耻之墙->超级大国!由于缺少C库,我还没有找到将pymssql部署到heroku的方法。如果你这样做,请张贴一个答案。可能需要在PythonBuildPack中添加一个检查,正如他们对cffi所做的那样,由于缺少C库,我还没有找到将pymssql部署到heroku的方法。如果你这样做,请张贴一个答案。可能需要向python构建包添加一个检查,就像它们对cffi所做的那样