Conda install and update do not work also solving environment get errors

前端 未结 8 1123
眼角桃花
眼角桃花 2020-12-24 10:54

I am using anaconda as below:

(base) C:\\Users\\xxx>conda info

     active environment : base
    active env location : C:\\Users\\xxx\\Documents\\ANACON         


        
相关标签:
8条回答
  • 2020-12-24 11:21

    Recommend to upgrade conda latest version.

    conda install --quiet --yes conda=4.7.11 
    python -m pip install --upgrade pip==19.2.2
    
    0 讨论(0)
  • 2020-12-24 11:30

    I ran into the same problem and I couldn't find a solution, but I did find a workaround. If you create an env and activate that env and then do the install, it seems to work just fine. If you don't need a lot of libraries I would try that.

    Commands are:

    1. Create env
    conda create --name myenv
    
    1. Activate the env
    conda activate myenv
    
    0 讨论(0)
  • 2020-12-24 11:31

    I started running in to this problem when one package suggested following modifications before installation

    conda config --set channel_priority true
    

    so I just reverted it and voila error's gone

    conda config --set channel_priority false
    
    0 讨论(0)
  • 2020-12-24 11:34

    Create a new environment if your are not superuser, after that activate environment to install packages

    0 讨论(0)
  • 2020-12-24 11:38

    https://stackoverflow.com/a/61117831/7802476 helped me. Creating a new environment using the accepted answer didn't get my jupyter notebook to recognize the installed opencv. I could only import cv2 when I was in the environment on my terminal.

    The fix was to use pip instead of conda, pip install opencv-python

    0 讨论(0)
  • 2020-12-24 11:41

    I run into same problem while installing geopandas. The issue was gone after I upgraded to a newer version of Anaconda using:

    conda update --prefix C:\apps\anaconda3 anaconda
    

    Note: you'll have to modify the path C:\apps\anaconda3 pointing to your own installation directory.

    Strangely, I did download Anaconda from the official homepage just a few hours ago and thought I had the newest version...

    0 讨论(0)
提交回复
热议问题