[英]Windows 10, Datatable install issue 'Preparing metadata (pyproject.toml) did not run successfully.'
[英]Trying to deploy API on Heroku issue Preparing metadata (pyproject.toml) did not run successfully
我正在使用 Python 3.9.2。 開發 Flask API 並且我的代碼運行良好,我能夠在本地運行 API 並返回預期的數據,但我想將其部署到更多測試。
我嘗試在 requirements.txt 中降級我的 Numpy 版本,但仍然出現相同的錯誤。
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [123 lines of output]
setup.py:461: UserWarning: Unrecognized setuptools command ('dist_info --egg-base /tmp/pip-modern-metadata-anq37ukt'), proceeding with generating Cython sources and expanding templates
warnings.warn("Unrecognized setuptools command ('{}'), proceeding with "
setup.py:563: DeprecationWarning:
`numpy.distutils` is deprecated since NumPy 1.23.0, as a result
of the deprecation of `distutils` itself. It will be removed for
Python >= 3.12. For older Python versions it will remain present.
It is recommended to use `setuptools < 60.0` for those Python versions.
For more details, see:
https://numpy.org/devdocs/reference/distutils_status_migration.html
在您的requirements.txt
中嘗試設置錯誤消息所報告的較低版本的setuptools
和numpy
要求.txt :
...
setuptools==59.8.0
numpy==1.19.2
...
問題在於 Heroku 用於構建應用程序的 Python 版本。 我創建了一個 runtime.txt 文件並指定了修復該問題的 Python 3.9.12。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.