-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
In a cooperation network, my IT installed company certificate as trusted root CA on the windows PC.
Even using --native-tls flag, uv still shows UnknownIssuer error, unless I use --allow-insecure-host pypi.org.
The error output:
PS C:\Users\tenny_lu> uv tool install pycowsay
⠇ Resolving dependencies... × Request failed after 3 retries
├─▶ Failed to fetch: `https://pypi.org/simple/pycowsay/`
├─▶ error sending request for url (https://pypi.org/simple/pycowsay/)
├─▶ client error (Connect)
╰─▶ invalid peer certificate: UnknownIssuer
help: Consider enabling use of system TLS certificates with the `--native-tls` command-line flag
PS C:\Users\tenny_lu> uv tool install pycowsay --native-tls
⠧ Resolving dependencies... error: Request failed after 3 retries
Caused by: Failed to fetch: `https://pypi.org/simple/pycowsay/`
Caused by: error sending request for url (https://pypi.org/simple/pycowsay/)
Caused by: client error (Connect)
Caused by: invalid peer certificate: UnknownIssuer
But plain pip still works out of the box:
PS C:\Users\tenny_lu> python -m pip install pycowsay
Defaulting to user installation because normal site-packages is not writeable
Collecting pycowsay
Downloading pycowsay-0.0.0.2-py3-none-any.whl.metadata (965 bytes)
Downloading pycowsay-0.0.0.2-py3-none-any.whl (4.0 kB)
Installing collected packages: pycowsay
Successfully installed pycowsay-0.0.0.2
On the same network, a linux PC does not have this problem. The output is like:
tenny@ubuntu-tenny01:~$ uv tool install pycowsay
Resolved 1 package in 589ms
Prepared 1 package in 121ms
Installed 1 package in 9ms
+ pycowsay==0.0.0.2
Installed 1 executable: pycowsay
Platform
Windows 11 x64
Version
uv 0.9.22
Python version
Python 3.13.11 (Installed from python website)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working