victorlei / smop

Small Matlab to Python compiler
MIT License
1.08k stars 410 forks source link

pkg_resources.DistributionNotFound #137

Open zdgithub opened 5 years ago

zdgithub commented 5 years ago

after pip install smop successfully, when I execute smop --version, I get the following errors:

Traceback (most recent call last):
  File "/home/zd/.local/bin/smop", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/home/zd/anaconda2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3191, in <module>
    @_call_aside
  File "/home/zd/anaconda2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3175, in _call_aside
    f(*args, **kwargs)
  File "/home/zd/anaconda2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3204, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/home/zd/anaconda2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 585, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/home/zd/anaconda2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/home/zd/anaconda2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'smop==0.41b0' distribution was not found and is required by the application