man-group / arctic

High performance datastore for time series and tick data
https://arctic.readthedocs.io/en/latest/
GNU Lesser General Public License v2.1
3.05k stars 583 forks source link

Unable to install artic via pip (nor pipenv) #961

Closed RaniJiang closed 2 years ago

RaniJiang commented 2 years ago

Arctic Version and Arctic Store: N/a

Platform and version

OS: Microsoft Windows 10 Home Version: Windows 10.0.19044 python 3.9 pipenv version 2022.3.23 pip 22.0.3

Description of problem

Attempting to install artic using the following command (based on the docs):

pip install git+https://github.com/manahl/arctic.git

but it produced a subprocess-exited-with-error .

error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [272 lines of output]
        error: subprocess-exited-with-error

        Preparing metadata (pyproject.toml) did not run successfully.
        exit code: 1

        [224 lines of output]
        Running from numpy source directory.
        setup.py:461: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
          run_build = parse_setuppy_commands()
        C:\Users\Rjian\AppData\Local\Temp\pip-wheel-0l9fwgvp\numpy_7b71c5e096ec4f3f8b0446576afba71b\tools\cythonize.py:75: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
          required_version = LooseVersion('0.29.14')
        C:\Users\Rjian\AppData\Local\Temp\pip-wheel-0l9fwgvp\numpy_7b71c5e096ec4f3f8b0446576afba71b\tools\cythonize.py:77: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
          if LooseVersion(cython_version) < required_version:
        Processing numpy/random\_bounded_integers.pxd.in
        Processing numpy/random\mtrand.pyx
        Processing numpy/random\_bit_generator.pyx
        Processing numpy/random\_bounded_integers.pyx.in
        Processing numpy/random\_common.pyx
        Processing numpy/random\_generator.pyx
        Processing numpy/random\_mt19937.pyx
        Processing numpy/random\_pcg64.pyx
        Processing numpy/random\_philox.pyx
        Processing numpy/random\_sfc64.pyx
        Cythonizing sources
        blas_opt_info:
        blas_mkl_info:
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries mkl_rt not found in ['C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.9_3.9.2800.0_x64__qbz5n2kfra8p0\\lib', 'C:\\', 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.9_3.9.2800.0_x64__qbz5n2kfra8p0\\libs']
          NOT AVAILABLE
...

Full error text attached here.

I also tried using pipenv install -e git+https://github.com/manahl/arctic.git#egg=artic, however recieved similar results. See here.

My currently installed pip packages are here, and pipenv graph here.

Hoping this is a quick and dumb question where I've missed installing a dependency! Does anyone know why the installation isn't working on my machine?

RaniJiang commented 2 years ago

Looks like both

pip install arctic==1.79.3
pipenv install artic==1.79.3

worked for me.