Closed DNApolymerase3 closed 4 months ago
I think you could get better help on Stackoverflow or https://discuss.scverse.org/
If pip
reports “Requirement already satisfied” but scanpy can’t import it, then the environment you run pip
on is not the same you run scanpy in (or the environment is broken and something caused the metadata to be there while the actual package isn’t)
If you run pip --version
, it should tell you its location. That location will probably be different from /opt/miniconda3/envs/scanpyenvt/
, so you need to make sure you use the correct pip, either by doing
/opt/miniconda3/envs/scanpyenvt/bin/pip install ...
or by activating it.
As said, if you have questions, please go to one of the forums that have a lot of people who can help you!
Please make sure these conditions are met
What happened?
Hello scanpy! First time, please let me know what to fix about my question asking! When running sc.pp.highly_variable_genes I get this error "ImportError: Please install skmisc package via `pip install --user scikit-misc " I've tried numerous times to install the package through pip and conda, pip gives me a metadata error and conda can't find the package even using the command the website gives at https://anaconda.org/conda-forge/scikit-misc.
I checked around online and there was a two year old thread on the subject (https://github.com/scverse/scanpy/issues/2073), but none of the solutions worked on my machine. I tried version control of all the packages, most importantly numpy as it was mentioned as a problem. I was wondering if this you all have any newer solutions for this issue.
Due to my inexperience im really not sure what is causing this issue and therefore what to provide you all with
I also just realized that after a clean install trying to pip3 install scikit-misc returns this
(scanpy_env) user@Mac ~ % pip3 install scikit-misc
Requirement already satisfied: scikit-misc in /opt/miniconda3/envs/scanpy_env/lib/python3.9/site-packages (0.3.1) Requirement already satisfied: numpy>=1.22.3 in /opt/miniconda3/envs/scanpy_env/lib/python3.9/site-packages (from scikit-misc) (1.26.4)
Still getting the error though...
Hardware: M2 max mac, macos 15 beta (could this be it somehow?)
Minimal code sample
Original error upon running highly variable genes
error when attempting install w/ conda
Im having trouble reproducing the pip3 install scikit-misc error, which i believe is due to me switching between versions of numpy, heres what I had previously copy pasted
Error output
No response
Versions