# Enviro Phat Install Fails

**URL:** <https://forums.pimoroni.com/t/enviro-phat-install-fails/2987>\
**Category:** Support\
**Created:** [September 7, 2016, 6:51am UTC](https://forums.pimoroni.com/t/enviro-phat-install-fails/2987 "2016-09-07T06:51:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbx9959](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@pbx9959](https://forums.pimoroni.com/u/pbx9959)\
**Post date:** [September 7, 2016, 6:51am UTC](https://forums.pimoroni.com/t/enviro-phat-install-fails/2987/1 "2016-09-07T06:51:01Z")

</div>

Run curl -sS [get.pimoroni.com/envirophat](http://get.pimoroni.com/envirophat) | bash  
on a freshly installed Zero, get the following

Installing Enviro pHAT library for Python 2…

Downloading/unpacking envirophat  
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 /root/.pip/pip.log  
Python 2 library install failed!  
If problems persist, visit [forums.pimoroni.com](http://forums.pimoroni.com) for support

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [September 7, 2016, 9:47am UTC](https://forums.pimoroni.com/t/enviro-phat-install-fails/2987/2 "2016-09-07T09:47:05Z")

</div>

Wow that’s a verbose error output for a simple failure. Darn pip is useless :D

The key words here are, I think, **“req, link, “connection error: %s” % exc, url,”**

Looks like you, or the Python package index, might be having some intermittent connection errors. Give it another go!

---

<div class="post-metadata">

**Author:** ![pbx9959](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@pbx9959](https://forums.pimoroni.com/u/pbx9959)\
**Post date:** [September 7, 2016, 9:55am UTC](https://forums.pimoroni.com/t/enviro-phat-install-fails/2987/3 "2016-09-07T09:55:46Z")

</div>

Will try again, actually tried a few times previously, all failed with the same, internet was working as far as idle same time browsing was OK. Other libraries get updated prior to this ok.

---

<div class="post-metadata">

**Author:** ![pbx9959](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@pbx9959](https://forums.pimoroni.com/u/pbx9959)\
**Post date:** [September 9, 2016, 7:33am UTC](https://forums.pimoroni.com/t/enviro-phat-install-fails/2987/4 "2016-09-09T07:33:06Z")

</div>

Worked after trying again, also got something similar for MicroDot phat, so it seems if you get a spurious message like this, just keep trying to do the install.
