Seurat: Cannot find UMAP, please install through pip (e.g. pip install umap-learn).

Created on 28 Jun 2019  Â·  9Comments  Â·  Source: satijalab/seurat

The package version of Seurat is 3.0.2
I tried pip install umap-learn and even
library("reticulate")
use_condaenv(condaenv="Renv", conda="/Users/user/anaconda3/bin/conda")
All showed umap is installed. But it still showed that it can not find umap.
Thank you,
Jinping

Most helpful comment

We have now added support for the UWOT R package, so you no longer need to install the python package to run UMAP in Seurat. This is currently in the develop branch, see installation instructions here

All 9 comments

Please try this command, and make sure to restart R afterwards
reticulate::py_install(packages ='umap-learn')

Thank you!
I tried and it showed:

reticulate::py_install(packages ='umap-learn')
Error in conda_python(envname = envname, conda = conda) :
conda environment r-reticulate not found

Do you know what should I do to deal with this?
Thank you,
Jinping

On Fri, Jun 28, 2019 at 9:54 AM satijalab notifications@github.com wrote:

Please try this command, and make sure to restart R afterwards
reticulate::py_install(packages ='umap-learn')

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/satijalab/seurat/issues/1760?email_source=notifications&email_token=AKONTEBKIHXWMDUX3MDYYP3P4YJ2ZA5CNFSM4H4FQGZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY2EPIY#issuecomment-506742691,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKONTEHN5U6QBUHJ5KFKVP3P4YJ2ZANCNFSM4H4FQGZQ
.

Installed new conda, umap installed, even tried reticulate::py_install(packages ='umap-learn'), restarted R and: "Cannot find UMAP, please install through pip...".
Doesn't work.

Great!
Thank you,
Jinping

On Fri, Jun 28, 2019 at 9:54 AM satijalab notifications@github.com wrote:

Please try this command, and make sure to restart R afterwards
reticulate::py_install(packages ='umap-learn')

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/satijalab/seurat/issues/1760?email_source=notifications&email_token=AKONTEBKIHXWMDUX3MDYYP3P4YJ2ZA5CNFSM4H4FQGZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY2EPIY#issuecomment-506742691,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKONTEHN5U6QBUHJ5KFKVP3P4YJ2ZANCNFSM4H4FQGZQ
.

Hi Jinping,

Try:
reticulate::py_install(envname="Renv", packages ='umap-learn')

py_install is looking for the environment r-reticulate, but you have a different name for it.

If this doesn't work, you can create a new environment called r-reticulate with:
library(reticulate)
conda_create("r-reticulate")

Thank you so much for your suggestions!

Best wishes,
Jinping

On Mon, Jul 22, 2019 at 1:21 PM rlittman16 notifications@github.com wrote:

Hi Jinping,

Try:
reticulate::py_install(envname="Renv", packages ='umap-learn')

py_install is looking for the environment r-reticulate, but you have a
different name for it.

If this doesn't work, you can create a new environment called r-reticulate
with:
library(reticulate)
conda_create("r-reticulate")

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/satijalab/seurat/issues/1760?email_source=notifications&email_token=AKONTEGLG7E2ELE7MSHMD2LQAXT73A5CNFSM4H4FQGZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2QRZYI#issuecomment-513875169,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKONTECCIEOHZYVE2ZTZY7DQAXT73ANCNFSM4H4FQGZQ
.

Hi Jinping,

Try:
reticulate::py_install(envname="Renv", packages ='umap-learn')

py_install is looking for the environment r-reticulate, but you have a different name for it.

If this doesn't work, you can create a new environment called r-reticulate with:
library(reticulate)
conda_create("r-reticulate")

The above worked for me after many tries with different solutions.
Note: I installed umap not with conda but with pip

We have now added support for the UWOT R package, so you no longer need to install the python package to run UMAP in Seurat. This is currently in the develop branch, see installation instructions here

Great!

Thank you and best wishes,
Jinping

On Fri, Aug 2, 2019 at 2:45 PM achamess notifications@github.com wrote:

Hi Jinping,

Try:
reticulate::py_install(envname="Renv", packages ='umap-learn')

py_install is looking for the environment r-reticulate, but you have a
different name for it.

If this doesn't work, you can create a new environment called r-reticulate
with:
library(reticulate)
conda_create("r-reticulate")

The above worked for me after many tries with different solutions.
Note: I installed umap not with conda but with pip

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/satijalab/seurat/issues/1760?email_source=notifications&email_token=AKONTEHBFPRTJIG4KLQVE7LQCR6FXA5CNFSM4H4FQGZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3ORR7A#issuecomment-517806332,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKONTEEWMXDSPI4AFQC7C6TQCR6FXANCNFSM4H4FQGZQ
.

Was this page helpful?
0 / 5 - 0 ratings