uv/foo/Untitled.ipynb
2025-07-03 16:22:31 -04:00

198 lines
11 KiB
Text

{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "db44aec4-1ac8-4190-b334-edeaeefef6a4",
"metadata": {},
"outputs": [],
"source": [
"import sys"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "d12e1e25-e7eb-40c5-b492-e8b196f0509d",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 2,
"id": "8587de33-5785-44ef-a007-2eb0ee6d33a8",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['/Users/crmarsh/Library/Application Support/uv/python/cpython-3.12.6-macos-aarch64-none/lib/python312.zip',\n",
" '/Users/crmarsh/Library/Application Support/uv/python/cpython-3.12.6-macos-aarch64-none/lib/python3.12',\n",
" '/Users/crmarsh/Library/Application Support/uv/python/cpython-3.12.6-macos-aarch64-none/lib/python3.12/lib-dynload',\n",
" '',\n",
" '/Users/crmarsh/.cache/uv/archive-v0/RUqtr-_FWH7hMVNmkRqca/lib/python3.12/site-packages']"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sys.path"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "53c5717e-0d76-40fb-a44e-ef01ff905bff",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[2K\u001b[2mResolved \u001b[1m5 packages\u001b[0m \u001b[2min 2ms\u001b[0m\u001b[0m \u001b[0m\n",
"\u001b[2K\u001b[2mInstalled \u001b[1m5 packages\u001b[0m \u001b[2min 3ms\u001b[0m\u001b[0m3.3.2 \u001b[0m\n",
" \u001b[32m+\u001b[39m \u001b[1mcertifi\u001b[0m\u001b[2m==2024.8.30\u001b[0m\n",
" \u001b[32m+\u001b[39m \u001b[1mcharset-normalizer\u001b[0m\u001b[2m==3.3.2\u001b[0m\n",
" \u001b[32m+\u001b[39m \u001b[1midna\u001b[0m\u001b[2m==3.10\u001b[0m\n",
" \u001b[32m+\u001b[39m \u001b[1mrequests\u001b[0m\u001b[2m==2.32.3\u001b[0m\n",
" \u001b[32m+\u001b[39m \u001b[1murllib3\u001b[0m\u001b[2m==2.2.3\u001b[0m\n"
]
}
],
"source": [
"!uv pip install requests"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "9b438df0-bc12-474f-bd4a-01affb3add20",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[34mDEBUG\u001b[39m uv 0.4.15\n",
"\u001b[34mDEBUG\u001b[39m Searching for default Python interpreter in system path\n",
"\u001b[34mDEBUG\u001b[39m Found `cpython-3.12.6-macos-aarch64-none` at `/Users/crmarsh/.cache/uv/builds-v0/.tmpfY1zAp/bin/python3` (active virtual environment)\n",
"\u001b[34mDEBUG\u001b[39m Using Python 3.12.6 environment at \u001b[36m/Users/crmarsh/.cache/uv/builds-v0/.tmpfY1zAp/bin/python3\u001b[39m\n",
"\u001b[34mDEBUG\u001b[39m Acquired lock for `/Users/crmarsh/.cache/uv/builds-v0/.tmpfY1zAp`\n",
"\u001b[34mDEBUG\u001b[39m At least one requirement is not satisfied: pydantic\n",
"\u001b[34mDEBUG\u001b[39m Using request timeout of 30s\n",
"\u001b[34mDEBUG\u001b[39m Solving with installed Python version: 3.12.6\n",
"\u001b[34mDEBUG\u001b[39m Solving with target Python version: >=3.12.6\n",
"\u001b[34mDEBUG\u001b[39m Adding direct dependency: pydantic*\n",
"\u001b[34mDEBUG\u001b[39m No cache entry for: https://pypi.org/simple/pydantic/\n",
"\u001b[34mDEBUG\u001b[39m Searching for a compatible version of pydantic (*)\n",
"\u001b[34mDEBUG\u001b[39m Selecting: pydantic==2.9.2 [compatible] (pydantic-2.9.2-py3-none-any.whl)\n",
"\u001b[34mDEBUG\u001b[39m No cache entry for: https://files.pythonhosted.org/packages/df/e4/ba44652d562cbf0bf320e0f3810206149c8a4e99cdbf66da82e97ab53a15/pydantic-2.9.2-py3-none-any.whl.metadata\n",
"\u001b[34mDEBUG\u001b[39m Adding transitive dependency for pydantic==2.9.2: annotated-types>=0.6.0\n",
"\u001b[34mDEBUG\u001b[39m Adding transitive dependency for pydantic==2.9.2: pydantic-core==2.23.4\n",
"\u001b[34mDEBUG\u001b[39m Adding transitive dependency for pydantic==2.9.2: typing-extensions{python_full_version < '3.13'}>=4.6.1\n",
"\u001b[34mDEBUG\u001b[39m No cache entry for: https://pypi.org/simple/annotated-types/\n",
"\u001b[34mDEBUG\u001b[39m No cache entry for: https://pypi.org/simple/pydantic-core/\n",
"\u001b[34mDEBUG\u001b[39m No cache entry for: https://pypi.org/simple/typing-extensions/\n",
"\u001b[34mDEBUG\u001b[39m No cache entry for: https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl.metadata\n",
"\u001b[34mDEBUG\u001b[39m Searching for a compatible version of pydantic-core (==2.23.4)\n",
"\u001b[34mDEBUG\u001b[39m Selecting: pydantic-core==2.23.4 [compatible] (pydantic_core-2.23.4-cp312-cp312-macosx_11_0_arm64.whl)\n",
"\u001b[34mDEBUG\u001b[39m No cache entry for: https://files.pythonhosted.org/packages/14/de/866bdce10ed808323d437612aca1ec9971b981e1c52e5e42ad9b8e17a6f6/pydantic_core-2.23.4-cp312-cp312-macosx_11_0_arm64.whl.metadata\n",
"\u001b[34mDEBUG\u001b[39m Adding transitive dependency for pydantic-core==2.23.4: typing-extensions>=4.6.0, <4.7.0 | >4.7.0\n",
"\u001b[34mDEBUG\u001b[39m Searching for a compatible version of annotated-types (>=0.6.0)\n",
"\u001b[34mDEBUG\u001b[39m Selecting: annotated-types==0.7.0 [compatible] (annotated_types-0.7.0-py3-none-any.whl)\n",
"\u001b[34mDEBUG\u001b[39m Searching for a compatible version of typing-extensions (>=4.6.0, <4.7.0 | >4.7.0)\n",
"\u001b[34mDEBUG\u001b[39m Selecting: typing-extensions==4.12.2 [compatible] (typing_extensions-4.12.2-py3-none-any.whl)\n",
"\u001b[34mDEBUG\u001b[39m No cache entry for: https://files.pythonhosted.org/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl.metadata\n",
"\u001b[34mDEBUG\u001b[39m Searching for a compatible version of typing-extensions{python_full_version < '3.13'} (>=4.6.1)\n",
"\u001b[34mDEBUG\u001b[39m Selecting: typing-extensions==4.12.2 [compatible] (typing_extensions-4.12.2-py3-none-any.whl)\n",
"\u001b[34mDEBUG\u001b[39m Adding transitive dependency for typing-extensions==4.12.2: typing-extensions==4.12.2\n",
"\u001b[34mDEBUG\u001b[39m Adding transitive dependency for typing-extensions==4.12.2: typing-extensions{python_full_version < '3.13'}==4.12.2\n",
"\u001b[34mDEBUG\u001b[39m Searching for a compatible version of typing-extensions{python_full_version < '3.13'} (==4.12.2)\n",
"\u001b[34mDEBUG\u001b[39m Selecting: typing-extensions==4.12.2 [compatible] (typing_extensions-4.12.2-py3-none-any.whl)\n",
"\u001b[34mDEBUG\u001b[39m Tried 4 versions: annotated-types 1, pydantic 1, pydantic-core 1, typing-extensions 1\n",
"\u001b[34mDEBUG\u001b[39m Split specific environment resolution took 0.309s\n",
"\u001b[2mResolved \u001b[1m4 packages\u001b[0m \u001b[2min 309ms\u001b[0m\u001b[0m\n",
"\u001b[34mDEBUG\u001b[39m Identified uncached requirement: annotated-types==0.7.0\n",
"\u001b[34mDEBUG\u001b[39m Identified uncached requirement: pydantic==2.9.2\n",
"\u001b[34mDEBUG\u001b[39m Identified uncached requirement: pydantic-core==2.23.4\n",
"\u001b[34mDEBUG\u001b[39m Identified uncached requirement: typing-extensions==4.12.2\n",
"\u001b[34mDEBUG\u001b[39m Unnecessary package: certifi==2024.8.30\n",
"\u001b[34mDEBUG\u001b[39m Unnecessary package: charset-normalizer==3.3.2\n",
"\u001b[34mDEBUG\u001b[39m Unnecessary package: idna==3.10\n",
"\u001b[34mDEBUG\u001b[39m Unnecessary package: requests==2.32.3\n",
"\u001b[34mDEBUG\u001b[39m Unnecessary package: urllib3==2.2.3\n",
"\u001b[34mDEBUG\u001b[39m No cache entry for: https://files.pythonhosted.org/packages/14/de/866bdce10ed808323d437612aca1ec9971b981e1c52e5e42ad9b8e17a6f6/pydantic_core-2.23.4-cp312-cp312-macosx_11_0_arm64.whl\n",
"\u001b[34mDEBUG\u001b[39m No cache entry for: https://files.pythonhosted.org/packages/df/e4/ba44652d562cbf0bf320e0f3810206149c8a4e99cdbf66da82e97ab53a15/pydantic-2.9.2-py3-none-any.whl\n",
"\u001b[34mDEBUG\u001b[39m No cache entry for: https://files.pythonhosted.org/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl\n",
"\u001b[34mDEBUG\u001b[39m No cache entry for: https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl\n",
"\u001b[2mPrepared \u001b[1m4 packages\u001b[0m \u001b[2min 118ms\u001b[0m\u001b[0m\n",
"\u001b[2mInstalled \u001b[1m4 packages\u001b[0m \u001b[2min 3ms\u001b[0m\u001b[0m\n",
" \u001b[32m+\u001b[39m \u001b[1mannotated-types\u001b[0m\u001b[2m==0.7.0\u001b[0m\n",
" \u001b[32m+\u001b[39m \u001b[1mpydantic\u001b[0m\u001b[2m==2.9.2\u001b[0m\n",
" \u001b[32m+\u001b[39m \u001b[1mpydantic-core\u001b[0m\u001b[2m==2.23.4\u001b[0m\n",
" \u001b[32m+\u001b[39m \u001b[1mtyping-extensions\u001b[0m\u001b[2m==4.12.2\u001b[0m\n",
"\u001b[34mDEBUG\u001b[39m Released lock at `/Users/crmarsh/.cache/uv/builds-v0/.tmpfY1zAp/.lock`\n"
]
}
],
"source": [
"!uv pip install pydantic --verbose"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "cf890d5d-2456-49e9-9e88-1d2bd7bfc1fa",
"metadata": {},
"outputs": [
{
"ename": "ModuleNotFoundError",
"evalue": "No module named 'pydantic'",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[5], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mpydantic\u001b[39;00m\n",
"\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'pydantic'"
]
}
],
"source": [
"import pydantic"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "af87f74d-ff58-4169-bd01-6c922e5061b4",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}