Pakete können nicht über PIP auf macOS installiert werden
Posted: 06 May 2025, 12:01
Ich versuche, ein Paket auf meinem Mac zu installieren, ich habe es von der Arbeit bekommen und es ist etwas kompliziert, da ich zwischen allen von Sicherheit hergestellten und IT Python frei installieren konnte.
for some time, then I set up proxy with:
set HTTP_PROXY=http://username:password@proxy.server:port
set HTTPS_PROXY=http://username:password@proxy.server:port
Dann trat meine erste Frage auf, was ist der Unterschied zwischen Set und Export, da ich anscheinend die gleichen Ergebnisse erzielen kann: Gleichzeitig enthält mein Passwort spezielle Zeichen? Dann sieht diese dekodierte URL wie http: // myname: haslo @@ proxy.server: port? />
http_proxy=http://domain%5C%5Ca123456:haslo%40@proxy.server:300
https_proxy=https://domain%5C%5Ca123456:haslo%40@pr ... oxy./ploxy /> Dann, wenn ich PIP mache, installiere ich PyTest (oder Anfragen), ich bekomme: < /p>
und ich stecke hier fest, ich habe es mit einem Zertifikat versucht (dieses -http://curl.haxx.se/ca/cacert.pem)
PIP ---Cert ./cact.pem installieren Sie PyTest
Code: Select all
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known')': /simple/requests/
set HTTP_PROXY=http://username:password@proxy.server:port
set HTTPS_PROXY=http://username:password@proxy.server:port
Dann trat meine erste Frage auf, was ist der Unterschied zwischen Set und Export, da ich anscheinend die gleichen Ergebnisse erzielen kann: Gleichzeitig enthält mein Passwort spezielle Zeichen? Dann sieht diese dekodierte URL wie http: // myname: haslo @@ proxy.server: port? />
http_proxy=http://domain%5C%5Ca123456:haslo%40@proxy.server:300
https_proxy=https://domain%5C%5Ca123456:haslo%40@pr ... oxy./ploxy /> Dann, wenn ich PIP mache, installiere ich PyTest (oder Anfragen), ich bekomme: < /p>
Code: Select all
Could not fetch URL https://pypi.org/simple/pytest/: There was a [url=viewtopic.php?t=20324]problem[/url] confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pytest/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))) - skipping
ERROR: Could not find a version that satisfies the requirement pytest (from versions: none)
ERROR: No matching distribution found for pytest
Could not fetch URL https://pypi.org/simple/pip/: There was a [url=viewtopic.php?t=20324]problem[/url] confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))) - skipping
PIP ---Cert ./cact.pem installieren Sie PyTest