bcolz icon indicating copy to clipboard operation
bcolz copied to clipboard

Cannot install bcolz for python 3.8 & python 3.9

Open Ranapop opened this issue 3 years ago • 8 comments

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

Ranapop avatar May 19 '21 15:05 Ranapop

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).

ZhangTianrong avatar Oct 19 '21 21:10 ZhangTianrong

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.

seva100 avatar Jan 31 '22 14:01 seva100

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

lycanthropes avatar Feb 04 '22 05:02 lycanthropes

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.

ckingdev avatar Feb 05 '22 00:02 ckingdev

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

elijah0kello avatar Feb 06 '22 14:02 elijah0kello

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

tateemma avatar Mar 28 '22 12:03 tateemma

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

mnuriyumusak avatar Jun 01 '22 13:06 mnuriyumusak

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

ckingdev avatar Jun 02 '22 22:06 ckingdev