hardingnj / xpclr

Code to compute the XP-CLR statistic to infer natural selection
MIT License
87 stars 28 forks source link

xpclr running problem #85

Open DongxinWang9 opened 2 years ago

DongxinWang9 commented 2 years ago

I have installed xpclr by conda but got the following error when i running it.

图片 $xpclr -h Traceback (most recent call last): File "/TJPROJ5/GB_PAG/USER/wangdongxin/Anaconda/envs/xpclr/bin/xpclr", line 4, in import('pkg_resources').run_script('xpclr==1.1.2', 'xpclr') File "/TJPROJ5/GB_PAG/USER/wangdongxin/Anaconda/envs/xpclr/lib/python2.7/site-packages/pkg_resources/init.py", line 666, in run_script self.require(requires)[0].run_script(script_name, ns) File "/TJPROJ5/GB_PAG/USER/wangdongxin/Anaconda/envs/xpclr/lib/python2.7/site-packages/pkg_resources/init.py", line 1469, in run_script exec(script_code, namespace, namespace) File "/TJPROJ5/GB_PAG/USER/wangdongxin/Anaconda/envs/xpclr/lib/python2.7/site-packages/xpclr-1.1.2-py2.7.egg/EGG-INFO/scripts/xpclr", line 5, in

File "build/bdist.linux-x86_64/egg/xpclr/init.py", line 3, in File "build/bdist.linux-x86_64/egg/xpclr/methods.py", line 11, in ImportError: cannot import name lru_cache

How can i deal with this problem?

flyingicedragon commented 1 year ago

The python version is 2.7. Maybe you used conda to install? Try use main branch and pip install . instead.

oceancongliu commented 6 months ago

I had the same problem, did you solve it?