pik-copan / pyunicorn

Unified Complex Network and Recurrence Analysis Toolbox
http://pik-potsdam.de/~donges/pyunicorn/
Other
195 stars 86 forks source link

pip install fails #138

Closed guist closed 2 years ago

guist commented 4 years ago

Hello,

I am working with WSL (Windows Sub-System for Linux), Ubuntu 18.04 and I am trying to install pyunicorn with pip, but it does not work.

First, I tried: pip install pyunicorn and I got the following error: Building wheel for pyunicorn (setup.py) ... error

Then I tried: sudo -H pip install pyunicorn and the previous error disappeared, but I got a new one:

Collecting pyunicorn
  Using cached https://files.pythonhosted.org/packages/97/4a/2b146e06088bffa6249ebc360b16d7c6045401b5d60f1817a68dac40fbda/pyunicorn-0.6.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-i8lbjb/pyunicorn/setup.py", line 43
        f'pyunicorn.{pkg}._ext.numerics',
                                       ^
    SyntaxError: invalid syntax
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-i8lbjb/pyunicorn/

Could you please tell me how to deal with this error?

Thanks! Guillaume

tburleyinfo commented 4 years ago

I had this problem.

I tried installing with pip3. and got the same error. then I ran pip3 install Cython

and then

pip3 install pyunicorn

It worked for me.

renzocom commented 4 years ago

pip install Cython solved for me also!

I would recommend Cython to be added as required dependency as many people seem to be getting the same error:

https://github.com/pik-copan/pyunicorn/issues/122 https://github.com/pik-copan/pyunicorn/issues/134

bovedder commented 4 years ago

same issue, also on ubuntu 20.04. Also it is solved by doing:

pip3 install Cython

and then

pip3 install pyunicorn

SethGo commented 3 years ago

Same issue on Mac OS Big Sur 11.2.3

pip3 install Cython then pip3 install pyunicorn

...Worked for me too. Should be in requirements.