Skip to content

Commit 95fe938

Browse files
committed
Add SSL instructions
1 parent 290fa10 commit 95fe938

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

ch02/01_main-chapter-code/ch02.ipynb

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,36 @@
179179
"id": "56488f2c-a2b8-49f1-aaeb-461faad08dce",
180180
"metadata": {},
181181
"source": [
182-
"- (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))"
182+
"<br>\n",
183+
"\n",
184+
"---\n",
185+
"\n",
186+
"<br>\n",
187+
"\n",
188+
"#### Troubleshooting SSL certificate errors\n",
189+
"\n",
190+
"- Some readers reported seeing ssl.SSLCertVerificationError: `SSL: CERTIFICATE_VERIFY_FAILED` when running `urllib.request.urlretrieve` in VSCode or Jupyter. \n",
191+
"- This usually means Python's certificate bundle is outdated.\n",
192+
"\n",
193+
"\n",
194+
"**Fixes**\n",
195+
"\n",
196+
"- Use Python ≥ 3.9; you can check your Python version by executing the following code:\n",
197+
"```python\n",
198+
"import sys\n",
199+
"print(sys.__version__)\n",
200+
"```\n",
201+
"- Upgrade the cert bundle:\n",
202+
" - pip: `pip install --upgrade certifi`\n",
203+
" - uv: `uv pip install --upgrade certifi`\n",
204+
"- Restart the Jupyter kernel after upgrading.\n",
205+
"- 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",
206+
"\n",
207+
"<br>\n",
208+
"\n",
209+
"---\n",
210+
"\n",
211+
"<br>"
183212
]
184213
},
185214
{

0 commit comments

Comments
 (0)