Leonidas
Leonidas

Reputation: 745

Unable to launch Jupyter Notebook or update Anaconda

I've been writing Python programs in Jupyter notebooks on my Windows 11 computer without any problems for the last few months, but today everything is suddenly not working: I tried to launch Jupyter Notebook from a desktop shortcut that I created, but nothing happened. (I double click the shortcut, wait, and...nothing happens.) Then I tried to launch Anaconda using the green Anaconda shortcut on my desktop toolbar. Again, I click the shortcut, wait, and nothing happens. Having failed to launch Jupyter notebook, I tried launching the Spyder editor, but same story--nothing happens when I double click the desktop shortcut. Finally, I went into the Anaconda prompt and tried updating Anaconda with conda update conda, but got this error message:

(base) C:\Users\mbarm>conda update conda
Error loading anaconda_anon_usage: No module named 'anaconda_anon_usage'
C:\Users\mbarm\anaconda3\lib\site-packages\_distutils_hack\__init__.py:33: UserWarning: Setuptools is replacing distutils.
  warnings.warn("Setuptools is replacing distutils.")

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "C:\Users\mbarm\anaconda3\lib\site-packages\conda\exceptions.py", line 1129, in __call__
        return func(*args, **kwargs)
      File "C:\Users\mbarm\anaconda3\lib\site-packages\conda\cli\main.py", line 86, in main_subshell
        exit_code = do_call(args, p)
      File "C:\Users\mbarm\anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 91, in do_call
        module = import_module(relative_mod, __name__.rsplit('.', 1)[0])
      File "C:\Users\mbarm\anaconda3\lib\importlib\__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
      File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
      File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 850, in exec_module
      File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
      File "C:\Users\mbarm\anaconda3\lib\site-packages\conda\cli\main_update.py", line 10, in <module>
        from ..notices import notices
      File "C:\Users\mbarm\anaconda3\lib\site-packages\conda\notices\__init__.py", line 4, in <module>
        from .core import notices  # noqa: F401
      File "C:\Users\mbarm\anaconda3\lib\site-packages\conda\notices\core.py", line 15, in <module>
        from . import http
      File "C:\Users\mbarm\anaconda3\lib\site-packages\conda\notices\http.py", line 9, in <module>
        import requests
    ModuleNotFoundError: No module named 'requests'

`$ C:\Users\mbarm\anaconda3\Scripts\conda-script.py update conda`

  environment variables:
                 CIO_TEST=<not set>
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=C:\Users\mbarm\anaconda3\condabin\..\Scripts\conda.exe
               CONDA_EXES="C:\Users\mbarm\anaconda3\condabin\..\Scripts\conda.exe"
             CONDA_PREFIX=C:\Users\mbarm\anaconda3
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=C:\Users\mbarm\anaconda3\python.exe
               CONDA_ROOT=C:\Users\mbarm\anaconda3
              CONDA_SHLVL=1
           CURL_CA_BUNDLE=<not set>
                 HOMEPATH=\Users\mbarm
                     PATH=C:\Users\mbarm\anaconda3;C:\Users\mbarm\anaconda3\Library\mingw-w64\bi
                          n;C:\Users\mbarm\anaconda3\Library\usr\bin;C:\Users\mbarm\anaconda3\Li
                          brary\bin;C:\Users\mbarm\anaconda3\Scripts;C:\Users\mbarm\anaconda3\bi
                          n;C:\Users\mbarm\anaconda3\condabin;C:\WINDOWS\system32;C:\WINDOWS;C:\
                          WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WI
                          NDOWS\System32\OpenSSH;C:\Program Files\MATLAB\R2024b\bin;C:\Users\mba
                          rm\AppData\Local\Microsoft\WindowsApps;C:\Users\mbarm\AppData\Local\Pr
                          ograms\MiKTeX\miktex\bin\x64;.;C:\Users\mbarm\AppData\Local\Programs\J
                          ulia-1.10.0\bin
             PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Windows
                          PowerShell\v1.0\Modules
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : base
    active env location : C:\Users\mbarm\anaconda3
            shell level : 1
       user config file : C:\Users\mbarm\.condarc
 populated config files : C:\Users\mbarm\.condarc
          conda version : 22.9.0
    conda-build version : 3.22.0
         python version : 3.9.13.final.0
       virtual packages : __win=0=0
                          __archspec=1=x86_64
       base environment : C:\Users\mbarm\anaconda3  (writable)
      conda av data dir : C:\Users\mbarm\anaconda3\etc\conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\mbarm\anaconda3\pkgs
                          C:\Users\mbarm\.conda\pkgs
                          C:\Users\mbarm\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\mbarm\anaconda3\envs
                          C:\Users\mbarm\.conda\envs
                          C:\Users\mbarm\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/22.9.0 requests/2.28.1 CPython/3.9.13 Windows/10 Windows/10.0.26100
          administrator : False
             netrc file : None
           offline mode : False


An unexpected error has occurred. Conda has prepared the above report.

If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers? [y/N]: y
Upload did not complete.

I have tried restarting my computer and repeating the above steps, but still nothing launches. What's going wrong? Any suggestions would be greatly appreciated.

Upvotes: 0

Views: 52

Answers (0)

Related Questions