Apple TV won't initialize due to pyatv dependency even though it is installed

I did the Python Virtualenv install on a Raspberry PI.

Both of the below were installed within the venv:

HomeAssistant 0.40.1
pyatv 0.2.2

log snippet:

17-03-17 19:13:28 ERROR (MainThread) [homeassistant.setup] Not initializing media_player.apple_tv because could not install dependency pyatv==0.2.1
17-03-17 19:13:28 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform media_player.apple_tv: Could not install all requirements.

pi@raspberrypi:~ $ atvremote scan
Found Apple TVs:

  • Apple TV at 192.168.11.5 (login id: 00000000-0571-5152-2e64-683815094197)
  • Apple TV 4G at 192.168.11.11 (login id: 00000000-5063-0985-021c-d2d48c2748a5)

Config snippet:

Discover some devices automatically

discovery:
ignore:
- apple_tv
- philips_hue
- roku

light:
platform: hue
host: 192.168.11.3

media_player:

  • platform: roku
    entity_id: roku_yu00gx333764,roku_6325a9255356
  • platform: apple_tv
    host: 192.168.11.11
    login_id: 00000000-5063-0985-021c-d2d48c2748a5