theres a temporary problem with the uv package (not scvi-tools)
please add this line, before running the install of scvi_colab and it will work:
#A Manual fix to uv issue in Colab, see: https://github.com/astral-sh/uv/issues/12724
import os
os.environ["UV_CONSTRAINT"] = os.environ["UV_BUILD_CONSTRAINT"] = ""
Could we add this to the scVI-colab package or does it need to be called outside of it?
try it after the installation of scvi-colab, and restart your session. (I installed a specific branch here, but try it with just install())
but youre right, it is not working right now (it worked for me yesterday), I guess their on the fix, at least from what I see in the discussion of the issue Google colab issue · Issue #12724 · astral-sh/uv · GitHub
you can still install with
!pip install --quiet scvi-tools
make no sense to add to the package, its not related to scvi-colab, any package will not work with uv in colab now (also numpy…) w/o the fix.
We should then disable uv until Colab fixes it. It’s annoying but more annoying for users to first need to find this issue and then install it correctly.