Blosc / bcolz

A columnar data container that can be compressed.
http://bcolz.blosc.org
959 stars 149 forks source link

Cannot install bcolz for python 3.8 & python 3.9 #417

Open Ranapop opened 3 years ago

Ranapop commented 3 years ago

Hi! I am using python3.8 (more specifically 3.8.5). I tried installing bcolz in a fresh virtual environment (should be no conflicts with other package versions) but I am getting errors when installing. Also, I could not install it with python 3.9

It might be related to this issue, but let me know if I should attach a full stack trace.

Note: it works on Python 3.7

ZhangTianrong commented 2 years ago

That probably is a problem with compiler version. When I switched from gcc 9 to gcc 4, it got installed in python 3.8 (but not 3.9), except that it is asking for an older version of pandas (older than 1.0).

seva100 commented 2 years ago

For me installing bcolz-zipline instead of bcolz helped (pip install bcolz-zipline). Could not get it working with python 3.9 any other way.

lycanthropes commented 2 years ago

you can download bcolz for python 3.9 from "https://www.lfd.uci.edu/~gohlke/pythonlibs/#bcolz"

ckingdev commented 2 years ago

Without knowing the details of the error(s) in compiling, it's not really possible to give any assistance.

That said- the issue you linked is having an error compiling c-blosc that has been encountered before- setting a compiler flag looks to be the ticket.

elijah0kello commented 2 years ago

I got the same error when trying to pip install bcolz. I tried it with conda install bcolz and I got this error.

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - bcolz -> python[version='2.7.*|3.5.*|3.6.*|>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.8,<3.9.0a0|>=3.7,<3.8.0a0|>=3.5,<3.6.0a0']

Your python: python=3.9

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

So I think the issue is having python 3.9. bcolz at the moment may only support older python versions

tateemma commented 2 years ago

For me installing bcolz-zipline instead of bcolz helped (pip install bcolz-zipline). Could not get it working with python 3.9 any other way.

This worked for me too

mnuriyumusak commented 2 years ago

first you need you need to install cython and zipline

pip install cython
pip install zipline
pip install bcolz

this order should work.

another option is just install below

pip install bcolz-zipline

ckingdev commented 2 years ago

After digging through the zipline code trying to find what could be happening there that would make installation of bcolz work after installing zipline, I found a comment in the requirements file

# bcolz fails to install if this is not in the build_requires.
setuptools>18.0