簡體   English   中英

在Raspberry Pi上安裝PayPalRESTSDK時出錯

[英]Error installing PayPalRESTSDK on Raspberry Pi

我正在嘗試在Raspberry Pi上安裝paypalrestsdk,但出現了一個錯誤列表:

$ pip install paypalrestsdk
Collecting paypalrestsdk
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Using cached paypalrestsdk-1.11.5.tar.gz
Collecting requests>=1.0.0 (from paypalrestsdk)
  Using cached requests-2.9.1-py2.py3-none-any.whl
Collecting six>=1.0.0 (from paypalrestsdk)
  Using cached six-1.10.0-py2.py3-none-any.whl
Collecting pyopenssl>=0.15 (from paypalrestsdk)
  Using cached pyOpenSSL-0.15.1-py2.py3-none-any.whl
Collecting cryptography>=0.7 (from pyopenssl>=0.15->paypalrestsdk)
  Using cached cryptography-1.2.3.tar.gz
Collecting idna>=2.0 (from cryptography>=0.7->pyopenssl>=0.15->paypalrestsdk)
  Using cached idna-2.0-py2.py3-none-any.whl
Collecting pyasn1>=0.1.8 (from cryptography>=0.7->pyopenssl>=0.15->paypalrestsdk)
  Using cached pyasn1-0.1.9-py2.py3-none-any.whl
Collecting setuptools>=1.0 (from cryptography>=0.7->pyopenssl>=0.15->paypalrestsdk)
  Using cached setuptools-20.2.2-py2.py3-none-any.whl
Collecting enum34 (from cryptography>=0.7->pyopenssl>=0.15->paypalrestsdk)
  Using cached enum34-1.1.2.tar.gz
Collecting ipaddress (from cryptography>=0.7->pyopenssl>=0.15->paypalrestsdk)
  Using cached ipaddress-1.0.16-py27-none-any.whl
Collecting cffi>=1.4.1 (from cryptography>=0.7->pyopenssl>=0.15->paypalrestsdk)
  Using cached cffi-1.5.2.tar.gz
Collecting pycparser (from cffi>=1.4.1->cryptography>=0.7->pyopenssl>=0.15->paypalrestsdk)
  Using cached pycparser-2.14.tar.gz
Building wheels for collected packages: paypalrestsdk, cryptography, enum34, cffi, pycparser
  Running setup.py bdist_wheel for paypalrestsdk ... error
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-QDhj0w/paypalrestsdk/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpUHqkenpip-wheel- --python-tag cp27:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for paypalrestsdk
  Running setup.py clean for paypalrestsdk
  Running setup.py bdist_wheel for cryptography ... error
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-QDhj0w/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpI47_Acpip-wheel- --python-tag cp27:

  Installed /tmp/pip-build-QDhj0w/cryptography/cffi-1.5.2-py2.7-linux-armv7l.egg
  Searching for pycparser
  Reading http://pypi.python.org/simple/pycparser/
  Best match: pycparser 2.14
  Downloading https://pypi.python.org/packages/source/p/pycparser/pycparser-2.14.tar.gz#md5=a2bc8d28c923b4fe2b2c3b4b51a4f935
  Processing pycparser-2.14.tar.gz
  Running pycparser-2.14/setup.py -q bdist_egg --dist-dir /tmp/easy_install-jMojU6/pycparser-2.14/egg-dist-tmp-ZE49md
  warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
  warning: no previously-included files matching 'lextab.*' found under directory 'tests'
  warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
  warning: no previously-included files matching 'lextab.*' found under directory 'examples'
  zip_safe flag not set; analyzing archive contents...

  Installed /tmp/pip-build-QDhj0w/cryptography/pycparser-2.14-py2.7.egg
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for cryptography
  Running setup.py clean for cryptography
  Running setup.py bdist_wheel for enum34 ... error
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-QDhj0w/enum34/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpt43mirpip-wheel- --python-tag cp27:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for enum34
  Running setup.py clean for enum34
  Running setup.py bdist_wheel for cffi ... error
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-QDhj0w/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp0x88PWpip-wheel- --python-tag cp27:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

這持續了一段時間,所以我保留了以后的內容。

paypalrestsdk是否可以在樹莓派上運行,我需要做些什么來促進它?

@Cdarke已經在上面正確地識別了問題,但是將Rapsberry Pi升級到2.7.11需要花費一些時間。 這是一個很好的教程

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM