You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works when using pip directly (for example, python3 -m pip install markupsafe), but poetry seems not to respect this configuration, failing with this message:
$ poetry install
The currently activated Python version 3.6.9 is not supported by the project (^3.9).
Trying to find and use a compatible version.
Using python3.9 (3.9.4)
Installing dependencies from lock file
Warning: The lock file is not up to date with the latest changes in pyproject.toml. You may be getting outdated dependencies. Run update to update them.
Package operations: 38 installs, 0 updates, 0 removals
• Installing markupsafe (1.1.1): Failed
SSLError
HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /pypi/markupsafe/1.1.1/json (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))
at ~/.poetry/lib/poetry/_vendor/py3.6/requests/adapters.py:514 in send
510│ raise ProxyError(e, request=request)
511│
512│ if isinstance(e.reason, _SSLError):
513│ # This branch is for urllib3 v1.22 and later.
→ 514│ raise SSLError(e, request=request)
515│
516│ raise ConnectionError(e, request=request)
517│
518│ except ClosedPoolError as e:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all, my company has a proxy that seems to replace certificates from the sites. I make pip work using this configuration in
pip.conf
:This works when using
pip
directly (for example,python3 -m pip install markupsafe
), butpoetry
seems not to respect this configuration, failing with this message:Is there something I am doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions