Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install error #4

Closed
yuntwang opened this issue Nov 25, 2018 · 2 comments
Closed

install error #4

yuntwang opened this issue Nov 25, 2018 · 2 comments

Comments

@yuntwang
Copy link

yuntwang commented Nov 25, 2018

Hi, when i install the wgd use the command line:
pip install .
the result is:

**Installing collected packages: wgd
  Found existing installation: wgd 1.0
    Uninstalling wgd-1.0:
      Successfully uninstalled wgd-1.0
  Running setup.py install for wgd ... done
Successfully installed wgd-1.0**
But when I run the wgd and encounter error:
Traceback (most recent call last):
  File "/usr/local/bin/wgd", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2603, in <module>
  File "/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 666, in require
  File "/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 565, in resolve
pkg_resources.DistributionNotFound: bokeh

why?

@arzwa
Copy link
Owner

arzwa commented Nov 25, 2018

Hi,

I think you installed wgd as a python 2.7 package. You should use Python3.5 or higher (tested with Python3.5 and Python3.6). Make sure your have Python3.5 or higher installed and use pip3 instead of pip. You can also try to install it in a virtualenv, that would require the following steps

virtualenv -p python3.6 wgd_venv
cd wgd_venv 
source ./bin/activate 
git clone https://github.com/arzwa/wgd.git 
cd wgd 
pip install .

When using the virtualenv, you always have to activate (i.e. source the activate script in the virtual environment (source <path to wgd_venv>/bin/activate) before using wgd.

Hope this helps,
Arthur

@yuntwang
Copy link
Author

Thanks.
Able to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants