无法在 Heroku Web 应用程序上安装 hashlib
Cannot install hashlib on Heroku Web Application
我正在尝试在 Heroku 上部署一个 python 网络应用程序,其中使用了 hashlib
模块。我将 hashlib
包含在 'requirements.txt' 文件中(文件中提到的所有模块均由 Heroku 使用 pip
安装)
但是它给了我一个错误:
TypeError: 'frozenset' object is not callable
其他一些答案,如 this use easy_install
, which is not supported by Heroku. Others like and this 在这种情况下没有用。
在Heroku中导入hashlib
怎么办?
自 Python 2.5 以来,Hashlib 已包含在标准库中。无需安装,或将其包含在 requirements.txt.
中
我正在尝试在 Heroku 上部署一个 python 网络应用程序,其中使用了 hashlib
模块。我将 hashlib
包含在 'requirements.txt' 文件中(文件中提到的所有模块均由 Heroku 使用 pip
安装)
但是它给了我一个错误:
TypeError: 'frozenset' object is not callable
其他一些答案,如 this use easy_install
, which is not supported by Heroku. Others like
在Heroku中导入hashlib
怎么办?
自 Python 2.5 以来,Hashlib 已包含在标准库中。无需安装,或将其包含在 requirements.txt.
中