URL: https://www.overclockers.at/coding-stuff/python-qt-lernen_258122/page_2 - zur Vollversion wechseln!
Den Thread hier schon durchprobiert bezüglich SSL Problem?
https://stackoverflow.com/questions...r-httpsconnecti
Das wäre für install jupyterlab
Code:pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org jupyterlab
Zitatplease check if date is set correctly. this error pops up usually when the time and date are different from that of the server.
Danke Hansmaulwurf, ich dachte jetzt kurz es läuft, da die Pakete schon durchgegangen sind. Habe dann weiter unten wieder einen 403 bekommen
Code:C:\Users\SU>pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org jupyterlab Defaulting to user installation because normal site-packages is not writeable Collecting jupyterlab Downloading jupyterlab-3.1.13-py3-none-any.whl (8.5 MB) |████████████████████████████████| 8.5 MB 930 kB/s Collecting ipython Downloading ipython-7.27.0-py3-none-any.whl (787 kB) |████████████████████████████████| 787 kB 819 kB/s Collecting nbclassic~=0.2 Downloading nbclassic-0.3.2-py3-none-any.whl (18 kB) Collecting packaging Downloading packaging-21.0-py3-none-any.whl (40 kB) |████████████████████████████████| 40 kB 234 kB/s Collecting jupyter-core Downloading jupyter_core-4.8.1-py3-none-any.whl (86 kB) |████████████████████████████████| 86 kB 600 kB/s Collecting jupyter-server~=1.4 Downloading jupyter_server-1.11.0-py3-none-any.whl (393 kB) |████████████████████████████████| 393 kB 1.3 MB/s Collecting jinja2>=2.1 Downloading Jinja2-3.0.1-py3-none-any.whl (133 kB) |████████████████████████████████| 133 kB 930 kB/s Collecting tornado>=6.1.0 ERROR: HTTP error 403 while getting [url]https://files.pythonhosted.org/packages/2f/2d/4050006dd16f1cc4b8f3a83437b768dc849def37508aaf59b42a8a5907e4/tornado-6.1-cp39-cp39-win_amd64.whl#sha256=548430be2740e327b3fe0201abe471f314741efcb0067ec4f2d7dcfb4825f3e4[/url] (from [url]https://pypi.org/simple/tornado/[/url]) (requires-python:>= 3.5) ERROR: Could not install requirement tornado>=6.1.0 from [url]https://files.pythonhosted.org/packages/2f/2d/4050006dd16f1cc4b8f3a83437b768dc849def37508aaf59b42a8a5907e4/tornado-6.1-cp39-cp39-win_amd64.whl#sha256=548430be2740e327b3fe0201abe471f314741efcb0067ec4f2d7dcfb4825f3e4[/url] (from jupyterlab) because of HTTP error 403 Client Error: Forbidden for url: [url]https://files.pythonhosted.org/packages/2f/2d/4050006dd16f1cc4b8f3a83437b768dc849def37508aaf59b42a8a5907e4/tornado-6.1-cp39-cp39-win_amd64.whl[/url] for URL [url]https://files.pythonhosted.org/packages/2f/2d/4050006dd16f1cc4b8f3a83437b768dc849def37508aaf59b42a8a5907e4/tornado-6.1-cp39-cp39-win_amd64.whl#sha256=548430be2740e327b3fe0201abe471f314741efcb0067ec4f2d7dcfb4825f3e4[/url] (from [url]https://pypi.org/simple/tornado/[/url]) (requires-python:>= 3.5) WARNING: You are using pip version 21.2.3; however, version 21.2.4 is available. You should consider upgrading via the 'C:\Program Files\Python39\python.exe -m pip install --upgrade pip' command.
Mach mal noch das pip update er will, und/oder probier den -i Zusatz
(du musst das [url] weggeben, das fügt oc.at immer wieder automatisch ein)Code:pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org jupyterlab -i [url]https://pypi.python.org/simple/[/url]
Also auch das läuft nicht durch:
Code:C:\Users\SU>pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org jupyterlab -i [url]https://pypi.python.org/simple/[/url] Defaulting to user installation because normal site-packages is not writeable Looking in indexes: [url]https://pypi.python.org/simple/[/url] WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/jupyterlab/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/jupyterlab/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/jupyterlab/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/jupyterlab/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/jupyterlab/ Could not fetch URL [url]https://pypi.python.org/simple/jupyterlab/:[/url] There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/jupyterlab/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))) - skipping ERROR: Could not find a version that satisfies the requirement jupyterlab (from versions: none) ERROR: No matching distribution found for jupyterlab WARNING: You are using pip version 21.2.3; however, version 21.2.4 is available. You should consider upgrading via the 'C:\Program Files\Python39\python.exe -m pip install --upgrade pip' command.
Code:C:\Users\SU>python.exe -m pip install --upgrade pip Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: pip in c:\program files\python39\lib\site-packages (21.2.3) Collecting pip WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /packages/ca/31/b88ef447d595963c01060998cb329251648acf4a067721b0452c45527eb8/pip-21.2.4-py3-none-any.whl WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /packages/ca/31/b88ef447d595963c01060998cb329251648acf4a067721b0452c45527eb8/pip-21.2.4-py3-none-any.whl WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /packages/ca/31/b88ef447d595963c01060998cb329251648acf4a067721b0452c45527eb8/pip-21.2.4-py3-none-any.whl WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /packages/ca/31/b88ef447d595963c01060998cb329251648acf4a067721b0452c45527eb8/pip-21.2.4-py3-none-any.whl WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /packages/ca/31/b88ef447d595963c01060998cb329251648acf4a067721b0452c45527eb8/pip-21.2.4-py3-none-any.whl ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/ca/31/b88ef447d595963c01060998cb329251648acf4a067721b0452c45527eb8/pip-21.2.4-py3-none-any.whl (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))) WARNING: You are using pip version 21.2.3; however, version 21.2.4 is available. You should consider upgrading via the 'C:\Program Files\Python39\python.exe -m pip install --upgrade pip' command.
Code:C:\Users\SU>python.exe -m pip install --upgrade pip -i --trusted-host pypi.org --trusted-host files.pythonhosted.org Defaulting to user installation because normal site-packages is not writeable WARNING: The index url "--trusted-host" seems invalid, please provide a scheme. Looking in indexes: --trusted-host Requirement already satisfied: pip in c:\program files\python39\lib\site-packages (21.2.3) WARNING: Location '--trusted-host/pip/' is ignored: it is either a non-existing path or lacks a specific scheme. WARNING: Location '--trusted-host/pypi-org/' is ignored: it is either a non-existing path or lacks a specific scheme. ERROR: Could not find a version that satisfies the requirement pypi.org (from versions: none) ERROR: No matching distribution found for pypi.org WARNING: You are using pip version 21.2.3; however, version 21.2.4 is available. You should consider upgrading via the 'C:\Program Files\Python39\python.exe -m pip install --upgrade pip' command.
Zitat aus einem Post von DuneLeider kann ich das auf dem Rechner, den ich dafür verwenden möchte nicht machen (Laptop von der Arbeit, Windows drauf). Am Desktop wäre es kein Problem, aber den kann ich dafür nicht verwenden.
Code:pip install --upgrade pip --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org
Code:%APPDATA%\pip\pip.ini
Code:[global] trusted-host = pypi.python.org pypi.org files.pythonhosted.org
Wie gesagt, ein anderes OS ist leider auf dem Rechner aus verschiedenen Gründen keine Option. Wäre mir auch SEHR viel lieber...
Dein Tipp wirft aus:
Code:C:\Users\SU>pip install --upgrade pip --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org Requirement already satisfied: pip in c:\program files\python39\lib\site-packages (21.2.3) Collecting pip Downloading pip-21.2.4-py3-none-any.whl (1.6 MB) | | 10 kB 682 kB/s eta 0:00:03ERROR: Exception: Traceback (most recent call last): File "C:\Program Files\Python39\lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher yield File "C:\Program Files\Python39\lib\site-packages\pip\_vendor\urllib3\response.py", line 519, in read data = self._fp.read(amt) if not fp_closed else b"" File "C:\Program Files\Python39\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 62, in read data = self.__fp.read(amt) File "C:\Program Files\Python39\lib\http\client.py", line 462, in read n = self.readinto(b) File "C:\Program Files\Python39\lib\http\client.py", line 506, in readinto n = self.fp.readinto(b) File "C:\Program Files\Python39\lib\socket.py", line 704, in readinto return self._sock.recv_into(b) File "C:\Program Files\Python39\lib\ssl.py", line 1241, in recv_into return self.read(nbytes, buffer) File "C:\Program Files\Python39\lib\ssl.py", line 1099, in read return self._sslobj.read(len, buffer) ConnectionResetError: [WinError 10054] Eine vorhandene Verbindung wurde vom Remotehost geschlossen During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Program Files\Python39\lib\site-packages\pip\_internal\cli\base_command.py", line 173, in _main status = self.run(options, args) File "C:\Program Files\Python39\lib\site-packages\pip\_internal\cli\req_command.py", line 203, in wrapper return func(self, options, args) File "C:\Program Files\Python39\lib\site-packages\pip\_internal\commands\install.py", line 315, in run requirement_set = resolver.resolve( File "C:\Program Files\Python39\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 94, in resolve result = self._result = resolver.resolve( File "C:\Program Files\Python39\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 472, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "C:\Program Files\Python39\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 341, in resolve self._add_to_criteria(self.state.criteria, r, parent=None) File "C:\Program Files\Python39\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria if not criterion.candidates: File "C:\Program Files\Python39\lib\site-packages\pip\_vendor\resolvelib\structs.py", line 151, in __bool__ return bool(self._sequence) File "C:\Program Files\Python39\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 140, in __bool__ return any(self) File "C:\Program Files\Python39\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 128, in <genexpr> return (c for c in iterator if id(c) not in self._incompatible_ids) File "C:\Program Files\Python39\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 82, in _iter_built_with_inserted candidate = func() File "C:\Program Files\Python39\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 204, in _make_candidate_from_link self._link_candidate_cache[link] = LinkCandidate( File "C:\Program Files\Python39\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 295, in __init__ super().__init__( File "C:\Program Files\Python39\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 156, in __init__ self.dist = self._prepare() File "C:\Program Files\Python39\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 227, in _prepare dist = self._prepare_distribution() File "C:\Program Files\Python39\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 305, in _prepare_distribution return self._factory.preparer.prepare_linked_requirement( File "C:\Program Files\Python39\lib\site-packages\pip\_internal\operations\prepare.py", line 508, in prepare_linked_requirement return self._prepare_linked_requirement(req, parallel_builds) File "C:\Program Files\Python39\lib\site-packages\pip\_internal\operations\prepare.py", line 550, in _prepare_linked_requirement local_file = unpack_url( File "C:\Program Files\Python39\lib\site-packages\pip\_internal\operations\prepare.py", line 239, in unpack_url file = get_http_url( File "C:\Program Files\Python39\lib\site-packages\pip\_internal\operations\prepare.py", line 102, in get_http_url from_path, content_type = download(link, temp_dir.path) File "C:\Program Files\Python39\lib\site-packages\pip\_internal\network\download.py", line 145, in __call__ for chunk in chunks: File "C:\Program Files\Python39\lib\site-packages\pip\_internal\cli\progress_bars.py", line 144, in iter for x in it: File "C:\Program Files\Python39\lib\site-packages\pip\_internal\network\utils.py", line 63, in response_chunks for chunk in response.raw.stream( File "C:\Program Files\Python39\lib\site-packages\pip\_vendor\urllib3\response.py", line 576, in stream data = self.read(amt=amt, decode_content=decode_content) File "C:\Program Files\Python39\lib\site-packages\pip\_vendor\urllib3\response.py", line 541, in read raise IncompleteRead(self._fp_bytes_read, self.length_remaining) File "C:\Program Files\Python39\lib\contextlib.py", line 137, in __exit__ self.gen.throw(typ, value, traceback) File "C:\Program Files\Python39\lib\site-packages\pip\_vendor\urllib3\response.py", line 455, in _error_catcher raise ProtocolError("Connection broken: %r" % e, e) pip._vendor.urllib3.exceptions.ProtocolError: ("Connection broken: ConnectionResetError(10054, 'Eine vorhandene Verbindung wurde vom Remotehost geschlossen', None, 10054, None)", ConnectionResetError(10054, 'Eine vorhandene Verbindung wurde vom Remotehost geschlossen', None, 10054, None)) WARNING: You are using pip version 21.2.3; however, version 21.2.4 is available. You should consider upgrading via the 'C:\Program Files\Python39\python.exe -m pip install --upgrade pip' command.
Code:C:\Users\SU\AppData\Local\pip 22.09.2021 15:17 <DIR> . 22.09.2021 15:17 <DIR> .. 22.09.2021 15:17 <DIR> cache 0 Datei(en), 0 Bytes 3 Verzeichnis(se), 168.553.259.008 Bytes frei C:\Users\SU\AppData\Local\pip>
Zitat aus einem Post von DuneWie gesagt, ein anderes OS ist leider auf dem Rechner aus verschiedenen Gründen keine Option. Wäre mir auch SEHR viel lieber...
ein bzw probier dann mit --install -d Ubuntu zu installierenCode:wsl.exe -l -o
Zitat aus einem Post von DuneDein Tipp wirft aus:
Ich bin nicht sicher, machen kannst du es auf jeden Fall, aber pip schaut halt das die Dinge untereinander funktionieren. Wenn würde ich auf jeden Fall die lokalen Pakete auch über pip installieren.
- Was passiert wenn du einer der Seiten im Browser aufrufst? z.B. (https://files.pythonhosted.org/pack...2d7dcfb4825f3e4)
-) Wo hast du pip her?
@Viper:
Das Problem ist wenn er mit QT GUI macht wird sich das mit dem Subsystem vielleicht beissen, oder?
edit:
Bist du in einem VPN?
Zitat aus einem Post von Hansmaulwurf- Was passiert wenn du einer der Seiten im Browser aufrufst? z.B. (https://files.pythonhosted.org/pack...2d7dcfb4825f3e4)
Der Klassiker, den ich unseren MA zB näherbringe, wenn sie was von einer externen Agentur via wetransfer bekommen:
VPN trennen, Link öffnen, runterladen, VPN wieder connecten...
Alternativ kannst du dich ja auch an deine IT wenden und ansuchen, dass die entsprechenden Seiten in der FW zugelassen werden. Wenn du aber keine explizite Genehmigung hast, python usw zu installieren, würd ich das dann eher lassen. Wir machens in so einem Fall gerne so, dass wir das Gerät im AD deaktivieren, zum nächstmöglichen Zeitpunkt einziehen und plattmachen. Alles ohne Genehmigung und installation durchs Softwarecenter wird als potenzielle Malware gesehen und auch so behandelt...
und was is wennst dir anaconda einfach installierst?
Okay also da der Finger von der Unternehmens IT drauf.
Somit keine richtige Möglichkeit. Persönlich bin ich mit den Offline Paketen immer gescheitert. Bin aber auch nur ein "Glue Code" anwender
Zitat aus einem Post von Hansmaulwurf@Viper:
Das Problem ist wenn er mit QT GUI macht wird sich das mit dem Subsystem vielleicht beissen, oder?
Danke, der Vorschlag mit Anaconda hat für den Kurs super funktioniert und das Problem umgangen!
Alles andere mach in in Zukunft außerhalb vom Firmennetzwerk, mir isses echt zu doof
Bin jetzt mit ner Mischung aus Anacoda, HTML Kursen (DataQuest und DataCamp kann ich sehr empfehlen) und EdX gut durchgekommen.
Kann gerne konkrete Links posten, falls jemand Interesse hat.
Mir fällt manchmal bei Jupyter Notebooks folgendes auf:
Das Notebook möchte das ich interaktiv arbeite mit Shift+Enter. Wenn ich genau das mach, kommt aber die Fehlermeldung dass die Variable 'np' (kommt von Numpy) nicht definiert ist.
Das Notebook kommt von EdX und ist z.B. hier verfügbar.
Verstehe ich da was falsch oder fehlen hier einfach nur die Numpy Variablen, weil die Library die nicht kennt?
wird fehlen denk ich?Code:import numpy as np
overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2025