Navigator Error
An unexpected error occurred on Navigator start-up
Report
Please report this issue in the anaconda issue tracker
Main Error
Could not find a suitable TLS CA certificate bundle, invalid path: C:\Program Files\PostgreSQL\16\ssl\certs\ca-bundle.crt
Traceback
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\exceptions.py", line 74, in exception_handler
return_value = func(*args, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 137, in start_app
window = run_app(splash)
File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 59, in run_app
window = MainWindow(splash=splash)
File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window\__init__.py", line 221, in __init__
self.api = AnacondaAPI()
File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 1176, in AnacondaAPI
ANACONDA_API = _AnacondaAPI()
File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 71, in __init__
self._client_api = ClientAPI(config=self.config)
File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\api\client_api.py", line 683, in ClientAPI
CLIENT_API = _ClientAPI(config=config)
File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\api\client_api.py", line 145, in __init__
self.reload_client()
File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\api\client_api.py", line 360, in reload_client
client.user()
File "C:\ProgramData\Anaconda3\lib\site-packages\binstar_client\__init__.py", line 241, in user
res = self.session.get(url, verify=self.session.verify)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\sessions.py", line 600, in get
return self.request("GET", url, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\adapters.py", line 460, in send
self.cert_verify(conn, request.url, verify, cert)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\adapters.py", line 263, in cert_verify
raise OSError(
OSError: Could not find a suitable TLS CA certificate bundle, invalid path: C:\Program Files\PostgreSQL\16\ssl\certs\ca-bundle.crt
При попытке обновить pip (python -m pip install --upgrade pip) возникает похожая ошибка (ошибка вроде появилась после установки PostgreSQL 16):
Requirement already satisfied: pip in c:\users\xxx\appdata\roaming\python\python39\site-packages (23.2.1)
ERROR: Could not install packages due to an OSError: Could not find a suitable TLS CA certificate bundle, invalid path: C:\Program Files\PostgreSQL\16\ssl\certs\ca-bundle.crt
Нашёл
статью, где описывается как решить данную проблему.
pip config -v list выдаёт:
For variant 'global', will try loading 'C:\ProgramData\pip\pip.ini'
For variant 'user', will try loading 'C:\Users\xxx\pip\pip.ini'
For variant 'user', will try loading 'C:\Users\xxx\AppData\Roaming\pip\pip.ini'
For variant 'site', will try loading 'C:\ProgramData\Anaconda3\pip.ini'
, вот только первых трёх папок у меня не нет, а 4-я папка (Anaconda3) существует, но pip.ini в ней нет.
Собственно, что делать?
Windows 10
pip 23.2.1
Python 3.9.13
import sys
print(sys.executable, sys.prefix, sep='; ')
Output: C:\ProgramData\Anaconda3\python.exe; C:\ProgramData\Anaconda3