I am trying to install some packages with mamba, but encountering a problem where it can't seem to find the packages to install. I first installed miniconda, then I installed mamba using conda install mamba -c conda-forge. Then I created an environment (following the instructions to install robostack) mamba create -n robostackenv ros-noetic-desktop python=3.9 -c robostack -c robostack-experimental -c conda-forge --no-channel-priority --override-channels. Lastly, I tried to install some packages, like cmake and catkin_tools, but it is unable to find them. The commands that I ran were mamba install compilers cmake pkg-config make ninja and mamba install catkin_tools, and the results that I got were
Encountered problems while solving:
- nothing provides requested compilers
Is there anything that I need to do to for it to find these packages?
It looks like I was able to specify the source of the packages using the -c argument, and then I found both the "compilers" package and the "catkin_tools" package on conda-forge. So the updated (working) commands were then:
mamba install compilers -c conda-forge
mamba install catkin_tools -c conda-forge
Related
I want to use mamba install to install the latest TensorFlow distribution (2.10 or 2.9.1 at least) with CUDA enabled.
I tried the following:
mamba install -c anaconda tensorflow==2.9.1=gpu_py310*
mamba install -c anaconda tensorflow=2.9.1=gpu_py310*
mamba install -c anaconda tensorflow=2.9.1=gpu_py310
mamba install tensorflow-gpu
The output is generally:
anaconda/win-64 Using cache
anaconda/noarch Using cache
conda-forge/win-64 Using cache
conda-forge/noarch Using cache
Encountered problems while solving:
- nothing provides requested tensorflow
With 2.9.1 and gpu_py310* if also on input command. It's important to clarify that I don't want to use pip, I want mamba to manage packages nicely to me. Any suggestions or answers to this problem?
I figured it out, just had to use -c main instead of -c anaconda. The command is as follows:
mamba install -c main tensorflow==2.9.1=gpu_py310*
It installs the desired version.
I am a Thai microbiologist try to use command line.
I installed "Ubuntu 20.04 on Windows" then bowtie2 by conda:
conda install -c bioconda bowtie2
and then check version of the bowtie2. it is 2.2.5 but I need 2.4.5. the con labels is weird like this https://github.com/BenLangmead/bowtie2/issues/397 but that is not the main point.
I try everything on the Internet.
finally, it worked on MacOX somehow.
but for "Ubuntu 20.04 on Windows" because bowtie2 is not compatible with current GLIBC and glibc after I ran:
conda install -c asmeurer glibc
after this glibc was installed, conda return nothing, mamba return "segmentation fault" and
the bowtie2 was upgraded to 2.3.5.1. (the scenario is like this https://www.biostars.org/p/433973/). It is like I broke the conda and mamba.
Do I need to uninstall "Ubuntu 20.04 on Windows"? or can I just delete whole miniconda3 folder and then re-install it?
thank you in advance
Chooseel
Broken Conda environments can be repaired externally using Micromamba (see this answer). No need to uninstall stuff. But if you want to start clean, it should be sufficient to reinstall Conda.
Please be aware that users generally will have a better experience not working from the base environment. Instead, create dedicated environments for the various tasks/projects. That is, use
mamba create -n bowtie -c conda-forge -c bioconda bowtie2
Also, mixing channels can lead to issues. Bioconda has very explicit requirements in channel priority:
channels:
- conda-forge
- bioconda
- defaults
I have a problem with the management of my environnements on Anaconda. I want to have three environnements, a "classic", another with ortools and a last with django. However, ortools can't be installed by using "conda install ortools", then i have to use pip. My problem is that when i use "pip install --user ortools" in the right environnement it install this package for all my environnements which have the same version of python than the right environnement. How could I fix this ?
Thanks !
#lucidbrot is correct in their comment. You should not use the --user argument in pip, because that will install into your $HOME directory, which every environment can access.
Here is a series of commands you can use to set up multiple environments, one with ortools
conda create --name ortools-env python=3
conda activate ortools-env
python -m pip install --no-cache-dir ortools
python -c "import ortools" # No error.
conda create --name django-env python=3 django
conda activate django-env
python -c "import ortools" # Error: module not found
For reference, the above code uses conda version 4.8.2
I need to install the scitools module in Anaconda. The commands
conda install scitools
conda install --channel johannr scitools
conda install -c asmeurer scitools
don't work. I'm using Python 3 on Windows 10. I would appreciate any help.
The packages you are trying to install are only available for linux and osx, you can try with this one:
conda install -c krisvanneste scitools_no_easyviz
Though as the name states it seems to not have support for EasyViz
I want to install Cartopy on Windows, which has some dependencies according to http://scitools.org.uk/cartopy/docs/latest/installing.html#installing.
When using pip install cartopy in the cmd prompt, it gives an error where it wants me to install GEOS 3.3.3 and Proj4 4.9.0.
I've downloaded geos-3.6.2.tar.bz2, but I cannot figure out how to install it. I've extracted the files, used cd to the right directory.
What can I do to install it correctly?
Is there an easy way to install Cartopy?
Do you have Anaconda?
try:
conda install -c scitools cartopy
When you are installing through pip then better install using Binary file .Whl extension file
You can find all the package binary file below.
Especially in case of Cartopy installation through pip, install cartopy using binary wheel file.
https://www.lfd.uci.edu/~gohlke/pythonlibs/
If you are on Windows and you have installed Anaconda, on your search, type "Anaconda prompt" and then type this command
conda install -c conda-forge cartopy
I tried conda install -c conda-forge cartopy
and tried installing it through Anaconda navigator 1.9.12 and I scoured multitude of ways and tried them all and failed. Only this
conda install -c scitools cartopy
works.
I first ran this conda update -n base -c defaults condo following instructions provided among responses here:Updating Anaconda fails: Environment Not Writable Error