首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不要在Raspberry PI-3终端上安装天蓝色存储命令。

不要在Raspberry PI-3终端上安装天蓝色存储命令。
EN

Stack Overflow用户
提问于 2017-02-14 10:53:13
回答 1查看 338关注 0票数 0

我在研究覆盆子派-3。我正在尝试使用Python将Raspberry PI-3与Azure存储帐户进行通信,并尝试将数据写入azure表。但是,当我在终端上安装pip install azure-storage时,会出现以下错误。

代码语言:javascript
复制
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

请帮帮我。

提前谢谢。

P.S:为我糟糕的英语感到抱歉。

编辑: pip.log文件日志。

代码语言:javascript
复制
------------------------------------------------------------
/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)
EN

回答 1

Stack Overflow用户

发布于 2017-02-14 15:13:56

我也遇到了同样的问题,我通过设定正确的时间和日期来解决这个问题。

可以使用以下命令设置时间

代码语言:javascript
复制
sudo date -s "Tue Feb 14 20:14:11 IST  2017"

当Pi连接到计算机时,必须手动设置数据和时间。

参考链接:How to Update Date and Time of Raspberry Pi With out Internet

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42224278

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档