arzwa / wgd

Python package and CLI for whole-genome duplication related analyses. This package is deprecated in favor of https://github.com/heche-psb/wgd.
http://wgd.readthedocs.io/en/latest/
GNU General Public License v3.0
81 stars 41 forks source link

install error #4

Closed yuntwang closed 5 years ago

yuntwang commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

Thanks. Able to run.