# Envirophat - empty install / module path for python

**URL:** https://forums.pimoroni.com/t/envirophat-empty-install-module-path-for-python/7991
**Category:** Support
**Created:** [June 21, 2018, 7:47am UTC](https://forums.pimoroni.com/t/envirophat-empty-install-module-path-for-python/7991 "2018-06-21T07:47:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Oliver](https://avatars.discourse-cdn.com/v4/letter/o/85f322/32.png) [@Oliver](https://forums.pimoroni.com/u/Oliver)
#### Post date: [June 21, 2018, 7:47am UTC](https://forums.pimoroni.com/t/envirophat-empty-install-module-path-for-python/7991/1 "2018-06-21T07:47:25Z")

</div>

Hi, all,

trying to get my first sensor on RPi 3 B+ with Raspbian running - it started out with some errors at the very beginning…

1. run: curl [https://get.pimoroni.com/envirophat](https://get.pimoroni.com/envirophat) | bash

2. also run install scripts over pimoroni dashboard or python3 and python seperately

3. in python: “from envirophat import light” results in “module not found”

4. in usr/local/lib/pythonX.X/dist-packages is NO directory for envirophat

what is missing?

am i right that it is for installing steps not necessary to have the envirophat already attached to the Pi?

Olli

---

<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: [June 21, 2018, 8:27am UTC](https://forums.pimoroni.com/t/envirophat-empty-install-module-path-for-python/7991/2 "2018-06-21T08:27:29Z")

</div>

This is odd, Enviro pHAT is of the packages shipped with Raspbian- as in, it’s already installed and ready to go from the moment you install the OS!

You could try:

```auto
sudo apt update
sudo apt install --reinstall python-envirophat python3-envirophat

```

And see if that restores it.

---

<div class="post-metadata">

### Author: ![Oliver](https://avatars.discourse-cdn.com/v4/letter/o/85f322/32.png) [@Oliver](https://forums.pimoroni.com/u/Oliver)
#### Post date: [June 21, 2018, 8:47am UTC](https://forums.pimoroni.com/t/envirophat-empty-install-module-path-for-python/7991/3 "2018-06-21T08:47:19Z")

</div>

still it is odd…

for more detail after running it with Thonny 2.1.16

Python 3.5.3 (/usr/bin/python3)

> > > %Debug all.py  
> > > Traceback (most recent call last):  
> > > File “/home/pi/Pimoroni/envirophat/examples-old/all.py”, line 6, in   
> > > from envirophat import light, weather, motion, analog  
> > > ImportError: No module named ‘envirophat’

As you can see on “examples\_old” I already tried several times installing enviro pHAT…

Perhaps one more hint?

---

<div class="post-metadata">

### Author: ![Oliver](https://avatars.discourse-cdn.com/v4/letter/o/85f322/32.png) [@Oliver](https://forums.pimoroni.com/u/Oliver)
#### Post date: [June 21, 2018, 9:03am UTC](https://forums.pimoroni.com/t/envirophat-empty-install-module-path-for-python/7991/4 "2018-06-21T09:03:32Z")

</div>

it is not odd anymore…

as it is with beginners, they are a little…

I used your command lines the wrong way  
(“sudo apt install” instead of “sudo apt install --reinstall python-envirophat python3-envirophat” because of the font color)

now, it runs :)

Thanks a lot for your help!

---

<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: [June 21, 2018, 9:23am UTC](https://forums.pimoroni.com/t/envirophat-empty-install-module-path-for-python/7991/5 "2018-06-21T09:23:11Z")

</div>

D’oh! The code formatting makes that bit look like a comment and really low contrast! Glad you’re up and running.
