【问题标题】:On Plone 4.3.15, how to install latest Stripe's API在 Plone 4.3.15 上,如何安装最新的 Stripe 的 API
【发布时间】:2019-07-11 13:45:30
【问题描述】:

在 Plone 4.3.15(通用安装)上,无法安装 stripe 2.32.1。 查看日志:

Getting distribution for 'stripe==2.32.1'.
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls'
  warnings.warn(msg)
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
  warnings.warn(msg)
error: Setup script exited with error in stripe setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
An error occurred when trying to install stripe 2.32.1. Look above this message for any errors that were output by easy_install.
While:
  Installing instance.
  Getting distribution for 'stripe==2.32.1'.
Error: Couldn't install: stripe 2.32.1

好像easy_install / Setuptools 太旧了? 我需要升级 Setuptool 吗?如果可以,怎么办?

【问题讨论】:

    标签: python-2.7 stripe-payments plone setuptools plone-4.x


    【解决方案1】:

    'install_requires' 必须是包含有效项目/版本要求说明符的字符串或字符串列表

    是的,您的setuptools 太旧了。升级:

    pip install -U setuptools
    

    或许你还需要升级pip

    pip install -U pip setuptools
    

    【讨论】:

    • 感谢您的回复,我试了一下,没有改变任何东西......似乎它来自zc.buildout:/Users/jseb/Sites/zope/z_aster/buildout-cache/eggs /zc.buildout-1.7.1-py2.7.egg/zc/buildout/easy_install.py
    • zc.buildout-1.7.1 于 2013 年发布!绝对是时候升级了。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-04
    • 1970-01-01
    • 2016-09-02
    相关资源
    最近更新 更多