How do I run conda install conda without conflicts?
Everything I do with Anaconda now finds conflicts and fails. To try and fix this problem I did the following:
Uninstall current Anaconda,
Restart the computer,
Fresh install of Anaconda3-2020.11-Windows-x86_64,
conda install conda.
I already have conflicts! The list of conflicts is probably 40 pages worth of text.
Did I do a bad job of uninstalling the previous Anaconda Installation or is this now the expected behavior? Is there some way to get around this issue? I'd like to abandon Anaconda all together but a package I use can't be installed without it (rdkit).
Thank you for any insight you can provide.
Retry the uninstall. Make sure to remove related hidden files (see what anaconda-clean deletes). You may also want to run conda init --reverse before uninstalling.
Sounds like you don't need Anaconda at all, but really just Conda. In that case, install Miniforge, or some variant.
Finally, avoid compromising your base installation by not using it for work. Create new environments for your projects (or just to install rdkit).
Related
After uninstall of Anaconda, and subsequent install in a different location (although, on the same PC), when I try this:
conda create --name xxx python==3.7
conda activate xxx
conda install -c conda-forge pandas opencv tesseract matplotlib
After hours of waiting, I see conda printing messages about how it found conflicts with libraries that have nothing to do with what it was asked to install, eg. Dask and so on.
By the way, Dask (likewise most other packages it finds conflicts with) was never installed on that PC, so, it's not a problem of stale cache.
Provided how idiotic this tool in general is... may I hope for a way to only install what it was told to install, and not check compatibility with things nobody asked it to install?
everyone:
Because of the speed of network, when I conda install some packages, there will exist some related packages can not be downloaded completely. But we can not install packages have been downloaded successfully without other "related" packages(maybe "related" means the best march in version, but not necessary).
For example, When I install pytorch, it need numpy-1.14.2, but I am with numpy-1.15.1. I don't need verson 1.14.2 numpy in practice.
So I am a little confused how to make "conda" trying to install packages have been downloaded successfully, ignoring download failed packages?
Thanks!
EricKani
From the conda documentation there are two options that may help https://docs.conda.io/projects/conda/en/latest/commands/install.html
--no-update-deps
Do not update or change already-installed dependencies.
--no-deps
Do not install, update, remove, or change dependencies. This WILL lead to broken environments and inconsistent behavior. Use at your own
risk.
I believe by default conda tries with --no-update-deps first and then if that fails tries to update deps; giving it that option will make sure some version of each needed package is installed, if not necessarily the latest.
You could try --no-deps as well, which will literally prevent conda from installinh ANYTHING other than the exact packages you tell it to, but things may not work with that.
I am new at this and I wonder why I cannot install or import geonamescache library in anaconda.
Apparently, I am the only one among my friends with this problem. Could you help me?
Thanks in advance.
Screenshot of error
If you're using conda you should make sure you jupyter notebook is either installed in the same conda environment containing geonamescache or has its kernel pointed to that environment. Check the output conda list in your activated environment for the said package. If you don't find it (I'm expecting you won't) it means pip3 installed geonamescache as a system wide package. You'll need to install it your activated environment using pip install geonamescache. Try not to use the pip3 command in conda environments.
Not sure what OS and version of Anaconda you are using, so I can't be very specific.
According to the official list of packages for the distribution of Anaconda 3.7 for Mac OS(I am currently using it), there are currently 657 packages supported by anaconda(For Windows that number stands at around 620 at the moment). Here is the full list for up-to-date distributions.
I have looked into geonamescache, and it looks like it might not be supported by Anaconda at all. I suggest you looking into installing it via Pip(keep in mind that I would do that only if necessary as it is better to avoid using Pip with Conda that much). Look at this answer if interested.
I want to install a package which is available on pypi, but I want to do so using Anaconda Navigator. Is this possible? I can see there's a way to add "channels" to Navigator in .condarc, but I have no idea what to add to make it see pypi, or if that's even possible.
I don't want to install the package using pip or even using the conda CLI, I want to use Navigator.
Adding pypi as a channel/repo for Conda is not possible.
Therefore, it is also not possible in Anaconda Navigator.
The only way is using pip inside an existing conda environment via the Conda CLI.
Sorry.
I'm using pip on webfaction and it keeps trying to uninstall system packages and then failing. For example if I try to install Fabric, one of the requirements is pycrypto. When it tries to uninstall it, it fails.
Is there anyway to tell pip to not do this?
This is a common use scenario for virtualenv (aside from... all the time).
Build your app around a clean virtualenv so that you don't have to think about system packages ever again (mostly) in permission limited environments.
My guess is you have created the virtualenv with the --system-site-packages option, so it could use some packages installed system-wide.
If that's indeed what you did, try to create a clean virtualenv, and install all your dependencies inside it. This way, you'll never have to think of what packages are installed sytem-wide and what packages are installed in the virtualenv.
To do so, you can use --no-site-packages, which has now become a default virtualenv option.