0

运行chalice package命令时出现此错误:

$ chalice package --stage preview .chalice/deployments/preview
Creating deployment package.

Could not install dependencies:
graphqlclient==0.2.4
You will have to build these yourself and vendor them in
the chalice vendor folder.

Your deployment will continue but may not work correctly
if missing dependencies are not present. For more information:
http://chalice.readthedocs.io/en/latest/topics/packaging.html

我正在使用 macbook pro。其他队友也使用同一台机器,但他们没有收到此错误。请帮忙!

4

2 回答 2

1

使用 sudo 运行命令解决了这个问题。

于 2020-01-30T08:29:52.783 回答
0

首先确保你已经 pip 安装了所有东西:

pip3 install -r requirements.txt

接下来,如果您仍然有错误,您需要获取软件包的轮子并将其放入名为“vendor”的文件夹中,并将其放入您的 chalice 根目录中。

- .chalice
- chalicelib
  - helloworld.py
- vendor
  - graphqlclient-any.whl
- app.py
- requirements.txt
于 2020-01-28T20:31:32.180 回答