yangao07 / abPOA

abPOA: an SIMD-based C library for fast partial order alignment using adaptive band
MIT License
118 stars 18 forks source link

Cython is already installed but I keep getting error #45

Closed kcjavier21 closed 1 year ago

kcjavier21 commented 1 year ago

I'm trying to install the package by using the command make install_py

But then I'm getting error about cython, which is already installed.

How can I fix this? Thank you!

image

yangao07 commented 1 year ago

I guess the cython was not installed in the same place as your current python? Can you try which command for python and cython?

kcjavier21 commented 1 year ago

Oh yeah, it's on a different folder. How can I install it on the same folder as python?

I just insert pip install cython for installing it. Can I just copy cython and paste it on the folder where python is located?

image

yangao07 commented 1 year ago

I think you should be able to install pyabpoa after "pip install cython".

kcjavier21 commented 1 year ago

I still can't :(

image

yangao07 commented 1 year ago

OK, do you have python under your '.local/bin' folder? If so, you should use that python for installation.

kcjavier21 commented 1 year ago

Copied python in ./local/bin which is the same as cython. Uninstalled and reinstalled cython. Same result :(

image

image

kcjavier21 commented 1 year ago

Should I also move pip in /.local/bin?

yangao07 commented 1 year ago

What's the output of python -c "import Cython" on your machine?

kcjavier21 commented 1 year ago

That's weird. It says no module named 'Cython'

image pip

yangao07 commented 1 year ago

OK, this is the reason. You need to install cython with this specific python. Maybe try python -m pip install cython

kcjavier21 commented 1 year ago

Okay. But should I uninstall the cython first and then reinstall using that command?

yangao07 commented 1 year ago

It doesn't matter.

kcjavier21 commented 1 year ago

Oh, it worked! But I got new error.

image

yangao07 commented 1 year ago

How about python -m pip install .?

kcjavier21 commented 1 year ago

It gives the same error when I run 'pip install pyabpoa'

image

image

image

yangao07 commented 1 year ago

I guess you downloaded the zipped repo from abPOA github homepage directly. Try using the release link: wget https://github.com/yangao07/abPOA/releases/download/v1.4.1/abPOA-v1.4.1.tar.gz tar -zxvf abPOA-v1.4.1.tar.gz && cd abPOA-v1.4.1

kcjavier21 commented 1 year ago

OMG! It worked! Thank you so muuuch! image