Skip to main content
 首页 » 编程设计

python之Onion omega 2 plus 上的 Pubnub 安装卡住

2024年09月07日9shangdawei

我无法在我的 Onion Omega 2 plus 板上安装 python pubnub SDK。安装总是在以下阶段卡住:

root@Omega-E5A5:/# pip3 install pubnub 
Collecting pubnub 
Using cached https://files.pythonhosted.org/packages/94/a4/321d50db8786e19e41be43da22fe38a03d5fc0560d9b815a8b5e11ea068e/pubnub-4.0.13.tar.gz 
Collecting pycryptodomex>=3.3 (from pubnub) 
Using cached https://files.pythonhosted.org/packages/6a/c4/21d55c2bf30995847406cb1a737d4ae5e19615eca39c9258f0548b5656f1/pycryptodomex-3.6.1.tar.gz 
Requirement already satisfied (use --upgrade to upgrade): requests>=2.4 in /usr/lib/python3.6/site-packages (from pubnub) 
Requirement already satisfied (use --upgrade to upgrade): six>=1.10 in /usr/lib/python3.6/site-packages (from pubnub) 
Requirement already satisfied (use --upgrade to upgrade): idna<2.7,>=2.5 in /usr/lib/python3.6/site-packages (from requests>=2.4->pubnub) 
Requirement already satisfied (use --upgrade to upgrade): urllib3<1.23,>=1.21.1 in /usr/lib/python3.6/site-packages (from requests>=2.4->pubnub) 
Requirement already satisfied (use --upgrade to upgrade): certifi>=2017.4.17 in /usr/lib/python3.6/site-packages (from requests>=2.4->pubnub) 
Requirement already satisfied (use --upgrade to upgrade): chardet<3.1.0,>=3.0.2 in /usr/lib/python3.6/site-packages (from requests>=2.4->pubnub) 
Installing collected packages: pycryptodomex, pubnub 
  Running setup.py install for pycryptodomex ... / 

我尝试手动安装 pycryptodomex 库但没有成功,仍然有同样的问题。它在 setup.py 运行期间的某个点后卡住。

请您参考如下方法:

  1. 我能够在我的 Mac 上安装 PubNub。
    • 'pip 安装 pubnub'
  2. 环境
    • 你的 Python 版本是多少? python v3 默认有 'venv',
    • 您是否尝试过在“venv”下安装“pubnub”?

随时联系 PubNub 的支持团队,他们非常乐于助人:)