File size: 9,867 Bytes
e0447d0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"id": "2c4eea53",
"metadata": {},
"outputs": [
{
"ename": "AttributeError",
"evalue": "'OutStream' object has no attribute 'reconfigure'",
"output_type": "error",
"traceback": [
"\u001b[31m---------------------------------------------------------------------------\u001b[39m",
"\u001b[31mAttributeError\u001b[39m Traceback (most recent call last)",
"\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[2]\u001b[39m\u001b[32m, line 2\u001b[39m\n\u001b[32m 1\u001b[39m \u001b[38;5;28;01mimport\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[34;01msys\u001b[39;00m\n\u001b[32m----> \u001b[39m\u001b[32m2\u001b[39m \u001b[43msys\u001b[49m\u001b[43m.\u001b[49m\u001b[43mstdout\u001b[49m\u001b[43m.\u001b[49m\u001b[43mreconfigure\u001b[49m(encoding=\u001b[33m'\u001b[39m\u001b[33mutf-8\u001b[39m\u001b[33m'\u001b[39m)\n",
"\u001b[31mAttributeError\u001b[39m: 'OutStream' object has no attribute 'reconfigure'"
]
}
],
"source": [
"import sys\n",
"sys.stdout.reconfigure(encoding='utf-8')"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "c2185684",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Collecting simpleT5\n",
" Using cached simplet5-0.1.4.tar.gz (7.3 kB)\n",
" Installing build dependencies: started\n",
" Installing build dependencies: finished with status 'done'\n",
" Getting requirements to build wheel: started\n",
" Getting requirements to build wheel: finished with status 'done'\n",
" Preparing metadata (pyproject.toml): started\n",
" Preparing metadata (pyproject.toml): finished with status 'done'\n",
"Requirement already satisfied: numpy in d:\\programming\\workspace_python\\study_llm\\venv\\lib\\site-packages (from simpleT5) (2.1.2)\n",
"Requirement already satisfied: pandas in d:\\programming\\workspace_python\\study_llm\\venv\\lib\\site-packages (from simpleT5) (2.3.1)\n",
"Collecting sentencepiece (from simpleT5)\n",
" Using cached sentencepiece-0.2.0.tar.gz (2.6 MB)\n",
" Installing build dependencies: started\n",
" Installing build dependencies: finished with status 'done'\n",
" Getting requirements to build wheel: started\n",
" Getting requirements to build wheel: finished with status 'error'\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
" error: subprocess-exited-with-error\n",
" \n",
" × Getting requirements to build wheel did not run successfully.\n",
" │ exit code: 1\n",
" ╰─> [48 lines of output]\n",
" Traceback (most recent call last):\n",
" File \u001b[35m\"D:\\Programming\\workspace_python\\Study_LLM\\venv\\Lib\\site-packages\\pip\\_vendor\\pyproject_hooks\\_in_process\\_in_process.py\"\u001b[0m, line \u001b[35m389\u001b[0m, in \u001b[35m<module>\u001b[0m\n",
" \u001b[31mmain\u001b[0m\u001b[1;31m()\u001b[0m\n",
" \u001b[31m~~~~\u001b[0m\u001b[1;31m^^\u001b[0m\n",
" File \u001b[35m\"D:\\Programming\\workspace_python\\Study_LLM\\venv\\Lib\\site-packages\\pip\\_vendor\\pyproject_hooks\\_in_process\\_in_process.py\"\u001b[0m, line \u001b[35m373\u001b[0m, in \u001b[35mmain\u001b[0m\n",
" json_out[\"return_val\"] = \u001b[31mhook\u001b[0m\u001b[1;31m(**hook_input[\"kwargs\"])\u001b[0m\n",
" \u001b[31m~~~~\u001b[0m\u001b[1;31m^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n",
" File \u001b[35m\"D:\\Programming\\workspace_python\\Study_LLM\\venv\\Lib\\site-packages\\pip\\_vendor\\pyproject_hooks\\_in_process\\_in_process.py\"\u001b[0m, line \u001b[35m143\u001b[0m, in \u001b[35mget_requires_for_build_wheel\u001b[0m\n",
" return hook(config_settings)\n",
" File \u001b[35m\"C:\\Users\\han\\AppData\\Local\\Temp\\pip-build-env-72ht70wk\\overlay\\Lib\\site-packages\\setuptools\\build_meta.py\"\u001b[0m, line \u001b[35m331\u001b[0m, in \u001b[35mget_requires_for_build_wheel\u001b[0m\n",
" return \u001b[31mself._get_build_requires\u001b[0m\u001b[1;31m(config_settings, requirements=[])\u001b[0m\n",
" \u001b[31m~~~~~~~~~~~~~~~~~~~~~~~~\u001b[0m\u001b[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n",
" File \u001b[35m\"C:\\Users\\han\\AppData\\Local\\Temp\\pip-build-env-72ht70wk\\overlay\\Lib\\site-packages\\setuptools\\build_meta.py\"\u001b[0m, line \u001b[35m301\u001b[0m, in \u001b[35m_get_build_requires\u001b[0m\n",
" \u001b[31mself.run_setup\u001b[0m\u001b[1;31m()\u001b[0m\n",
" \u001b[31m~~~~~~~~~~~~~~\u001b[0m\u001b[1;31m^^\u001b[0m\n",
" File \u001b[35m\"C:\\Users\\han\\AppData\\Local\\Temp\\pip-build-env-72ht70wk\\overlay\\Lib\\site-packages\\setuptools\\build_meta.py\"\u001b[0m, line \u001b[35m512\u001b[0m, in \u001b[35mrun_setup\u001b[0m\n",
" \u001b[31msuper().run_setup\u001b[0m\u001b[1;31m(setup_script=setup_script)\u001b[0m\n",
" \u001b[31m~~~~~~~~~~~~~~~~~\u001b[0m\u001b[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n",
" File \u001b[35m\"C:\\Users\\han\\AppData\\Local\\Temp\\pip-build-env-72ht70wk\\overlay\\Lib\\site-packages\\setuptools\\build_meta.py\"\u001b[0m, line \u001b[35m317\u001b[0m, in \u001b[35mrun_setup\u001b[0m\n",
" \u001b[31mexec\u001b[0m\u001b[1;31m(code, locals())\u001b[0m\n",
" \u001b[31m~~~~\u001b[0m\u001b[1;31m^^^^^^^^^^^^^^^^\u001b[0m\n",
" File \u001b[35m\"<string>\"\u001b[0m, line \u001b[35m128\u001b[0m, in \u001b[35m<module>\u001b[0m\n",
" File \u001b[35m\"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.13_3.13.1520.0_x64__qbz5n2kfra8p0\\Lib\\subprocess.py\"\u001b[0m, line \u001b[35m414\u001b[0m, in \u001b[35mcheck_call\u001b[0m\n",
" retcode = call(*popenargs, **kwargs)\n",
" File \u001b[35m\"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.13_3.13.1520.0_x64__qbz5n2kfra8p0\\Lib\\subprocess.py\"\u001b[0m, line \u001b[35m395\u001b[0m, in \u001b[35mcall\u001b[0m\n",
" with \u001b[31mPopen\u001b[0m\u001b[1;31m(*popenargs, **kwargs)\u001b[0m as p:\n",
" \u001b[31m~~~~~\u001b[0m\u001b[1;31m^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n",
" File \u001b[35m\"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.13_3.13.1520.0_x64__qbz5n2kfra8p0\\Lib\\subprocess.py\"\u001b[0m, line \u001b[35m1039\u001b[0m, in \u001b[35m__init__\u001b[0m\n",
" \u001b[31mself._execute_child\u001b[0m\u001b[1;31m(args, executable, preexec_fn, close_fds,\u001b[0m\n",
" \u001b[31m~~~~~~~~~~~~~~~~~~~\u001b[0m\u001b[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n",
" \u001b[1;31mpass_fds, cwd, env,\u001b[0m\n",
" \u001b[1;31m^^^^^^^^^^^^^^^^^^^\u001b[0m\n",
" ...<5 lines>...\n",
" \u001b[1;31mgid, gids, uid, umask,\u001b[0m\n",
" \u001b[1;31m^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n",
" \u001b[1;31mstart_new_session, process_group)\u001b[0m\n",
" \u001b[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n",
" File \u001b[35m\"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.13_3.13.1520.0_x64__qbz5n2kfra8p0\\Lib\\subprocess.py\"\u001b[0m, line \u001b[35m1554\u001b[0m, in \u001b[35m_execute_child\u001b[0m\n",
" hp, ht, pid, tid = \u001b[31m_winapi.CreateProcess\u001b[0m\u001b[1;31m(executable, args,\u001b[0m\n",
" \u001b[31m~~~~~~~~~~~~~~~~~~~~~\u001b[0m\u001b[1;31m^^^^^^^^^^^^^^^^^^\u001b[0m\n",
" \u001b[1;31m# no special security\u001b[0m\n",
" \u001b[1;31m^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n",
" ...<4 lines>...\n",
" \u001b[1;31mcwd,\u001b[0m\n",
" \u001b[1;31m^^^^\u001b[0m\n",
" \u001b[1;31mstartupinfo)\u001b[0m\n",
" \u001b[1;31m^^^^^^^^^^^^\u001b[0m\n",
" \u001b[1;35mFileNotFoundError\u001b[0m: \u001b[35m[WinError 2] 吏\\x80\\xec젙\\xeb맂 \\xed뙆\\xec씪\\xec쓣 李얠쓣 \\xec닔 \\xec뾾\\xec뒿\\xeb땲\\xeb떎\u001b[0m\n",
" [end of output]\n",
" \n",
" note: This error originates from a subprocess, and is likely not a problem with pip.\n",
"error: subprocess-exited-with-error\n",
"\n",
"× Getting requirements to build wheel did not run successfully.\n",
"│ exit code: 1\n",
"╰─> See above for output.\n",
"\n",
"note: This error originates from a subprocess, and is likely not a problem with pip.\n"
]
}
],
"source": [
"!pip install simpleT5 "
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "566cf25f",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"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.13.5"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
|