RemoveError: 'requests' is a dependency of conda and cannot be removed from conda's operating environment

前端 未结 11 678
情歌与酒
情歌与酒 2021-02-05 02:47

Having trouble installing a third party library and I have not seen this error before using Windows 10 with Anaconda installed:

C:\\Users\\XYZ>conda env creat         


        
相关标签:
11条回答
  • 2021-02-05 03:13
    conda update --force conda
    

    will solve : Verifying transaction: failed Remove Error: 'request' is a dependency of conda and cannot be removed from conda is operating environment.

    0 讨论(0)
  • 2021-02-05 03:16
    conda update --force conda
    

    this worked for me in win64 when I

    conda install -c https://conda.anaconda.org/sdvillal openslide-python
    
    0 讨论(0)
  • 2021-02-05 03:18

    I had the same problem on Mac Mojave, and in my case run conda update --force conda first worked for me.

    0 讨论(0)
  • 2021-02-05 03:22

    I ran into the same problem, on macos, after removing all R packages installed by anaconda. Unfortunately, the only solution I found is to reinstall anaconda. Alternatively, you could download miniconda shell script installer, run it with -U option and point the installer at your conda directory. This fixed the issue for me while maintaining settings such as channel priority. However, many of previously installed packages were not importable (Python couldn't find them) and i ended up re-installing all of them.

    0 讨论(0)
  • 2021-02-05 03:24

    I had the same problem. Try to use the command prompt to install wheel file if you get an error something like this(as shown in picture) then you must install that wheel file:

    Extra(how to install wheel file from command prompt):

    • download wheel file as per the system specifications: -search required file here https://www.lfd.uci.edu/~gohlke/pythonlibs/ -e.g. bsddb3 -click bsddb3 and search required file
    • open command prompt on your system
    • change the location on the command prompt to: where you have downloaded wheel file e.g C:\Users\Name\Downloads
    • go to the location, where you have installed python>>go to script>> copy the path (e.g C:\Program Files (x86)\Python36-32\Scripts)
    • write the command, to install wheel file using pip install (e.g. C:\Program Files (x86)\Python36-32\Scripts\pip install copy_name_of_the_wheel_file)
    • run the command
    0 讨论(0)
提交回复
热议问题