Closed YanjieHe closed 3 years ago
There's a note about it in the readme installation instructions. In short: either update numpy, or install without pep517.
Hi @david-cortes ,
Thank you for your speedy reply! I uninstalled the contextualbandits package and reinstalled it with the command given in the tutorial. But I still got the same error.
python -m pip uninstall contextualbandits
python -m pip install --no-use-pep517 contextualbandits
Any suggestions?
Note: to make sure that I successfully reinstalled the package. I uninstalled the package, and then I restarted the jupyter server, confirming the package has been successfully removed. After that, I installed the package again according to the command in the readme file.
That's weird. Perhaps updating numpy to >= 1.20.0 would do (might also need updating cython too). Alternatively, you could also install it without pip with python setup.py install
, or if you know how to create installable packages, perhaps modifying the requirements.txt
by changing numpy
to numpy<=1.19.0
.
Hi @david-cortes ,
I upgraded my numpy version to 1.20.1
and it works. Thank you very much for your help!
When I execute this code block:
I got an error:
Does anyone have any idea why it happened?