Entering edit mode
20 months ago
Andy
▴
120
Good morning,
I am trying to use SCVI-tool to integrate my data, however, I meet a problem. I hope you guys could help me out.
I meet the error message- "module 'scvi' has no attribute 'data' when I run scvi.model.SCVI.setup_anndata(adata) command.
My SCVI - tool version is "scvi-tools 0.20.3".
Thanks for your support.
Andy
Really weird, I import scvi without any error message, and when I check the package version inside the python, and python replies "scvi package not found". I use pip install dcvi-tools, and I indeed have scvi tools in my condo environment.
I have noticed on occasion that conda does not properly set its environment variables; so even though I have the "
(packagename)
" in the prompt,which python
gives me a binary in a different location than$CONDA_LIB/envs/packagename
. Try deactivating all the way back to base, and then reactivating to the library of interest, and see if that sets your environment variables correctly.Could you please elaborate? I think I did not really follow you.
I did check echo $CONDA_PREFIX and the path are same.
I just mean
conda deactivate
until it says(base)
, and thenconda activate yourenv
Thanks for the clarification! I think I solved the problem.