mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2026-04-10 12:33:42 +00:00
Add additional notes on debugging SSL issues (#810)
* Add SSL instructions * update old pytorch tests * update * update * update * update * update * update * update * update
This commit is contained in:
committed by
GitHub
parent
290fa10d55
commit
18c6b970ab
@@ -179,7 +179,36 @@
|
||||
"id": "56488f2c-a2b8-49f1-aaeb-461faad08dce",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"- (If you encounter an `ssl.SSLCertVerificationError` when executing the previous code cell, it might be due to using an outdated Python version; you can find [more information here on GitHub](https://github.com/rasbt/LLMs-from-scratch/pull/403))"
|
||||
"<br>\n",
|
||||
"\n",
|
||||
"---\n",
|
||||
"\n",
|
||||
"<br>\n",
|
||||
"\n",
|
||||
"#### Troubleshooting SSL certificate errors\n",
|
||||
"\n",
|
||||
"- Some readers reported seeing ssl.SSLCertVerificationError: `SSL: CERTIFICATE_VERIFY_FAILED` when running `urllib.request.urlretrieve` in VSCode or Jupyter. \n",
|
||||
"- This usually means Python's certificate bundle is outdated.\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"**Fixes**\n",
|
||||
"\n",
|
||||
"- Use Python ≥ 3.9; you can check your Python version by executing the following code:\n",
|
||||
"```python\n",
|
||||
"import sys\n",
|
||||
"print(sys.__version__)\n",
|
||||
"```\n",
|
||||
"- Upgrade the cert bundle:\n",
|
||||
" - pip: `pip install --upgrade certifi`\n",
|
||||
" - uv: `uv pip install --upgrade certifi`\n",
|
||||
"- Restart the Jupyter kernel after upgrading.\n",
|
||||
"- If you still encounter an `ssl.SSLCertVerificationError` when executing the previous code cell, please see the discussion at [more information here on GitHub](https://github.com/rasbt/LLMs-from-scratch/pull/403)\n",
|
||||
"\n",
|
||||
"<br>\n",
|
||||
"\n",
|
||||
"---\n",
|
||||
"\n",
|
||||
"<br>"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user