On Plone 4.3.15, how to install latest Stripe's API

不问归期 提交于 2021-01-28 06:50:22

问题


On Plone 4.3.15 (Universal installation), it is not possible to install stripe 2.32.1. See logs :

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

It seems that easy_install / Setuptools is too old ? Do I need to upgrade Setuptool ? If so, how can it be done ?


回答1:


'install_requires' must be a string or list of strings containing valid project/version requirement specifiers

Yes, your setuptools is too old. To upgrade:

pip install -U setuptools

Perhaps you also need to upgrade pip:

pip install -U pip setuptools


来源:https://stackoverflow.com/questions/56990705/on-plone-4-3-15-how-to-install-latest-stripes-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!