首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Vercel部署上的pushover错误

Vercel部署上的pushover错误
EN

Stack Overflow用户
提问于 2022-06-24 23:28:21
回答 1查看 176关注 0票数 0

我正在尝试将一个烧瓶应用程序部署到Vercel,并得到这个错误,我相信这是因为python-pushover包。

下面是在终端上运行vercel -prod后生成的错误日志。

代码语言:javascript
复制
[01:19:33.416] Downloading 523 deployment files...
[01:19:42.856] Looking up build cache...
[01:19:43.125] Build Cache not found
[01:19:43.439] Running "vercel build"
[01:19:44.052] Vercel CLI 25.1.1-canary.7 build (beta) — https://vercel.com/feedback
[01:19:44.211] WARN! Due to `builds` existing in your configuration file, the Build and Development Settings defined in your Project Settings will not apply. Learn More: https://vercel.link/unused-build-settings
[01:19:44.350] Installing required dependencies...
[01:19:48.362] Failed to run "pip3.9 install --disable-pip-version-check --target . --upgrade -r /vercel/path1/requirements.txt"
[01:19:48.424] Error! Command failed: pip3.9 install --disable-pip-version-check --target . --upgrade -r /vercel/path1/requirements.txt
[01:19:48.424]   error: subprocess-exited-with-error
[01:19:48.424]   
[01:19:48.424]   × python setup.py egg_info did not run successfully.
[01:19:48.425]   │ exit code: 1
[01:19:48.425]   ╰─> [1 lines of output]
[01:19:48.425]       error in python-pushover setup command: use_2to3 is invalid.
[01:19:48.425]       [end of output]
[01:19:48.425]   
[01:19:48.425]   note: This error originates from a subprocess, and is likely not a problem with pip.
[01:19:48.425] error: metadata-generation-failed
[01:19:48.425] 
[01:19:48.425] × Encountered error while generating package metadata.
[01:19:48.426] ╰─> See above for output.
[01:19:48.426] 
[01:19:48.426] note: This is an issue with the package mentioned above, not pip.
[01:19:48.426] hint: See above for details.
[01:19:48.426] 
[01:19:48.428] Collecting python-pushover==0.4
[01:19:48.428]   Downloading python-pushover-0.4.tar.gz (19 kB)
[01:19:48.428]   Preparing metadata (setup.py): started
[01:19:48.428]   Preparing metadata (setup.py): finished with status 'error'
[01:19:48.428] 
[01:19:48.535] Error: Command "vercel build" exited with 1

我在Pipenv环境中安装了python3.9。

以前是否有人遇到过此错误,并能提供解决方案?

谢谢!

EN

回答 1

Stack Overflow用户

发布于 2022-10-17 04:06:54

也许,你必须检查vercel支持的版本。我有一个类似的错误,我首先可以通过检查我是否在python中使用venv来解决它,然后检查它是否更新。在Windows上,推荐的命令是:

代码语言:javascript
复制
python -m pip install --upgrade pip
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72750254

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档