RJT1990 / pyflux

Open source time series library for Python
BSD 3-Clause "New" or "Revised" License
2.1k stars 240 forks source link

pip install fail on google colab #166

Open dirknbr opened 2 years ago

dirknbr commented 2 years ago
Collecting pyflux
  Using cached pyflux-0.4.15.tar.gz (1.3 MB)
Requirement already satisfied: numpy in /usr/local/lib/python3.7/dist-packages (from pyflux) (1.19.5)
Requirement already satisfied: pandas in /usr/local/lib/python3.7/dist-packages (from pyflux) (1.1.5)
Requirement already satisfied: scipy in /usr/local/lib/python3.7/dist-packages (from pyflux) (1.4.1)
Requirement already satisfied: numdifftools in /usr/local/lib/python3.7/dist-packages (from pyflux) (0.9.40)
Requirement already satisfied: patsy in /usr/local/lib/python3.7/dist-packages (from pyflux) (0.5.2)
Requirement already satisfied: algopy>=0.4 in /usr/local/lib/python3.7/dist-packages (from numdifftools->pyflux) (0.5.7)
Requirement already satisfied: statsmodels>=0.6 in /usr/local/lib/python3.7/dist-packages (from numdifftools->pyflux) (0.10.2)
Requirement already satisfied: python-dateutil>=2.7.3 in /usr/local/lib/python3.7/dist-packages (from pandas->pyflux) (2.8.2)
Requirement already satisfied: pytz>=2017.2 in /usr/local/lib/python3.7/dist-packages (from pandas->pyflux) (2018.9)
Requirement already satisfied: six in /usr/local/lib/python3.7/dist-packages (from patsy->pyflux) (1.15.0)
Building wheels for collected packages: pyflux
  Building wheel for pyflux (setup.py) ... error
  ERROR: Failed building wheel for pyflux
  Running setup.py clean for pyflux
Failed to build pyflux
Installing collected packages: pyflux
    Running setup.py install for pyflux ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-55kchscf/pyflux_5882bd81dcd145dbaf93bfa838249a71/setup.py'"'"'; __file__='"'"'/tmp/pip-install-55kchscf/pyflux_5882bd81dcd145dbaf93bfa838249a71/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-bvd4wquf/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/pyflux Check the logs for full command output.
hxyue1 commented 2 years ago

I'm having the same problem as well

amartya-mitra commented 2 years ago

Here's how it worked for me: pip install --upgrade pip setuptools wheel followed by, pip install git+https://github.com/RJT1990/pyflux