Conda: ModuleNotFoundError: No module named 'requests.exceptions'

Created on 21 Aug 2017  路  1Comment  路  Source: conda/conda

Hello,
I am using Anaconda through Windows and I recently tried to update all of my packages through

conda update --all

everything was going fine but then froze for about an hour while trying to update a specific package.
So I decided to cancel the update midway through and then received this error. I also receive this same error whenever I try to update/install anything. I have tried installing requests through pip but returns stating that the requirements are already met.
This error also comes up on startup of the anaconda prompt

Traceback (most recent call last):
  File "C:\Users\S593318\AppData\Local\Continuum\Anaconda3\lib\site-packages\con
da\cli\main.py", line 152, in main
    activate.main()
  File "C:\Users\S593318\AppData\Local\Continuum\Anaconda3\lib\site-packages\con
da\cli\activate.py", line 167, in main
    import conda.install
  File "C:\Users\S593318\AppData\Local\Continuum\Anaconda3\lib\site-packages\con
da\install.py", line 37, in <module>
    from .core.package_cache import rm_fetched  # NOQA
  File "C:\Users\S593318\AppData\Local\Continuum\Anaconda3\lib\site-packages\con
da\core\package_cache.py", line 10, in <module>
    from .path_actions import CacheUrlAction, ExtractPackageAction
  File "C:\Users\S593318\AppData\Local\Continuum\Anaconda3\lib\site-packages\con
da\core\path_actions.py", line 31, in <module>
    from ..gateways.download import download
  File "C:\Users\S593318\AppData\Local\Continuum\Anaconda3\lib\site-packages\con
da\gateways\download.py", line 11, in <module>
    from requests.exceptions import ConnectionError, HTTPError, SSLError
ModuleNotFoundError: No module named 'requests.exceptions'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\S593318\AppData\Local\Continuum\Anaconda3\Scripts\conda-script.
py", line 5, in <module>
    sys.exit(conda.cli.main())
  File "C:\Users\S593318\AppData\Local\Continuum\Anaconda3\lib\site-packages\con
da\cli\main.py", line 159, in main
    return handle_exception(e)
  File "C:\Users\S593318\AppData\Local\Continuum\Anaconda3\lib\site-packages\con
da\exceptions.py", line 620, in handle_exception
    print_unexpected_error_message(e)
  File "C:\Users\S593318\AppData\Local\Continuum\Anaconda3\lib\site-packages\con
da\exceptions.py", line 578, in print_unexpected_error_message
    info_stdout, info_stderr = get_info()
  File "C:\Users\S593318\AppData\Local\Continuum\Anaconda3\lib\site-packages\con
da\exceptions.py", line 548, in get_info
    args.func(args, p)
  File "C:\Users\S593318\AppData\Local\Continuum\Anaconda3\lib\site-packages\con
da\cli\main_info.py", line 148, in execute
    from conda.api import get_index
  File "C:\Users\S593318\AppData\Local\Continuum\Anaconda3\lib\site-packages\con
da\api.py", line 1, in <module>
    from .core.index import get_index
  File "C:\Users\S593318\AppData\Local\Continuum\Anaconda3\lib\site-packages\con
da\core\index.py", line 8, in <module>
    from .package_cache import PackageCache
  File "C:\Users\S593318\AppData\Local\Continuum\Anaconda3\lib\site-packages\con
da\core\package_cache.py", line 10, in <module>
    from .path_actions import CacheUrlAction, ExtractPackageAction
  File "C:\Users\S593318\AppData\Local\Continuum\Anaconda3\lib\site-packages\con
da\core\path_actions.py", line 31, in <module>
    from ..gateways.download import download
  File "C:\Users\S593318\AppData\Local\Continuum\Anaconda3\lib\site-packages\con
da\gateways\download.py", line 11, in <module>
    from requests.exceptions import ConnectionError, HTTPError, SSLError
ModuleNotFoundError: No module named 'requests.exceptions'

should I uninstall/reinstall anaconda?

source-community type-support

Most helpful comment

pip should still be functional since it vendors requests and we don't with conda. pip install -U requests

>All comments

pip should still be functional since it vendors requests and we don't with conda. pip install -U requests

Was this page helpful?
0 / 5 - 0 ratings