Closed ERSchultz closed 3 weeks ago
Hi, thank you for the question. We only have a bit dependency to scvi, I will try to remove that package dependency today or tomorrow. In the meantime, try to relax some constraints in your pip install command, for example, I saw some mismatch you mentioned about torchtext
. Here in our project toml file:
https://github.com/bowang-lab/scGPT/blob/7301b51a72f5db321fccebb51bc4dd1380d99023/pyproject.toml#L16-L17
we don't require any specific version for that. I will suggest you install it by pip install torch==version_you_need torchtext
. pip should be able to pickup the right version of torchtext that matches the torch version.
Let me know if there is any update
Hi,
I'm having trouble installing scGPT due to issues (largely) with scvi.
I'm using the following script to install:
This leads to me installing scvi-tools-0.20.3 (I'm using anndata==0.10.8 to resolve the issue discussed here: https://github.com/scverse/scvi-tools/issues/2953)
I encounter the following runtime issue:
I tried reverting the version of scvi-tools suggested by the docs/requirements.txt
pip install scvi-tools==0.16.4
However, I then encounter the following runtime issue:
I have torchtext-0.16.2+cpu with torch-2.1.2+cu121. The requirements suggest torchtext==0.14.0 with torch-1.13.0.
As an alternative, I tried setting up an environment specifying all the requirements in docs/requirements.txt.
I encounter the same ModuleNotFoundError as above, despite specifying the version of scvi and torchtext. This suggests that pytorch_lightning may be the issue. I have pytorch-lightning-1.5.3. Newer version of pytorch-lightning seem to have resolved this error: https://github.com/Lightning-AI/pytorch-lightning/issues/10597. However, according to pip, "scvi-tools 0.16.4 requires pytorch-lightning<1.6,>=1.5".
If the developers could provide a complete .yml file that would be much appreciated!
Please advise, thanks!