未在Raspberry PI-3终端中安装azure-storage命令
问题描述:
我正在开发Raspberry PI-3。我试图使用Python将Raspberry PI-3与Azure存储帐户进行通信,并尝试将数据写入Azure表。但是,当我在终端上安装pip install azure-storage
时,出现以下错误。未在Raspberry PI-3终端中安装azure-storage命令
Downloading/unpacking azure-storage
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1178, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 194, in find_requirement
page = self._get_page(main_index_url, req)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_page
session=self.session,
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 694, in get_page
req, link, "connection error: %s" % exc, url,
TypeError: __str__ returned non-string (type Error)
Storing debug log for failure in /home/pi/.pip/pip.log
请帮帮我。
在此先感谢。
付款方式:对不起,我英文很差。
编辑: pip.log文件日志。
------------------------------------------------------------
/usr/local/bin/pip run on Sat Jun 4 04:34:00 2016
Downloading/unpacking azure-storage
Getting page https://pypi.python.org/simple/azure-storage/
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1178, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 194, in find_requirement
page = self._get_page(main_index_url, req)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_page
session=self.session,
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 694, in get_page
req, link, "connection error: %s" % exc, url,
TypeError: __str__ returned non-string (type Error)
答
我在raspbery pi 3中遇到了同样的问题。我通过设置正确的时间和日期解决了这个问题。
可以使用该命令
sudo date -s "Tue Feb 14 20:14:11 IST 2017"
当裨连接到计算机应具有手动设定数据和时间的设定时间。
参考链接:How to Update Date and Time of Raspberry Pi With out Internet
+0
完美的工作,谢谢... – Jayesh
您还可以从pip.log共享相应的日志条目吗? –
@GauravMantri是的,先生。 – Jayesh