I am using snakemake as workflow manager. I first create a conda environment in JupyterLab (anaconda) with: conda create base
. Then I activate a .yaml
file with mamba env create --name <name of the env> --file environment.yaml
. In the .yaml file I include among other the following dependencies: R = 4.1.3, tensorflow = 2.8.0
. At this point I get an error message:
Encountered problems while solving:
- nothing provides requested r 4.1.3**
- nothing provides requested tensorflow 2.8.0**.
As far as I understand, the dependencies are going to be take care of by conda in the local environment. I eventually installed manually tensorflow
in the local environment with pip install tensorflow.
Nevertheless, I get the same error message when I try to activate the .yaml file. I know that I have already installed R
.
What should I do ? I have Ubuntu 20.04.4 LTS.
Many thanks.
CodePudding user response:
Packages are not found because the current highest versions of tensorflow from conda is 2.7.0 and the highest available for R is 4.1.0, so you have to downgrade if you want to install using conda.
For tensorflow, you can tell conda to use pip instead, but I don't know if there is a similar workaround for R.
Edit: Fixed R version