Pylama builds successfully but then complains about missing packages on run

Hey Folks,

I built pylama (https://github.com/klen/pylama) successfully, but when I try to run it I’m getting complaints about unmet dependencies.

The first time, it was pyflakes. After adding this successfully and rebuilding, then the issue was pydocstyle.

Am I doing something wrong here? Should I have explicitly imported requirements.txt?

Messages are like so:

Traceback (most recent call last):
  File "/Users/zakgreant/Library/Caches/activestate/zakg/Pylama/Library/Frameworks/Python.framework/Versions/Current/bin/pylama", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/Users/zakgreant/Library/Caches/activestate/zakg/Pylama/Library/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3191, in <module>
    @_call_aside
  File "/Users/zakgreant/Library/Caches/activestate/zakg/Pylama/Library/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3175, in _call_aside
    f(*args, **kwargs)
  File "/Users/zakgreant/Library/Caches/activestate/zakg/Pylama/Library/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3204, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/Users/zakgreant/Library/Caches/activestate/zakg/Pylama/Library/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/Users/zakgreant/Library/Caches/activestate/zakg/Pylama/Library/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/Users/zakgreant/Library/Caches/activestate/zakg/Pylama/Library/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pydocstyle>=2.0.0' distribution was not found and is required by pylama

… and after a few rounds of installing missing dependencies, it’s now working. I still wonder why the dependencies weren’t picked up initially.