将 Stripe 添加到 Python 项目

Adding Stripe to a Python Project

如何将 Stripe 库添加到 Python google 应用引擎项目?我读过一些关于 pip 和 easy_install 的东西,但我不明白如何实现它们。

是的,你可以。只需手动将 Stripe Python 库添加到您的项目文件夹。

如果你没有使用虚拟环境运行这个命令:

python3.6 -m pip install stripe 

其中 3.6 可以替换为您在项目中使用的 python 版本。 pythonx.x -m pip 为您所在的特定 python 版本安装条带,并且不会影响其他 python 安装。如果你想为所有版本的 python 安装 stripe,只需执行 pip install stripe.

如果您使用的是虚拟环境,那么一旦它成为环境 运行,pip install stripe。