" Preparing metadata (pyproject.toml): finished with status 'done'\n",
"Building wheels for collected packages: pytorch\n",
" Building wheel for pytorch (pyproject.toml): started\n",
" Building wheel for pytorch (pyproject.toml): finished with status 'error'\n",
"Failed to build pytorch\n",
"Note: you may need to restart the kernel to use updated packages.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
" error: subprocess-exited-with-error\n",
" \n",
" × Building wheel for pytorch (pyproject.toml) did not run successfully.\n",
" │ exit code: 1\n",
" ╰─> [20 lines of output]\n",
" Traceback (most recent call last):\n",
" File \"c:\\Users\\oscar\\Documents\\GitHub\\mso_3_4-td1\\.venv\\Lib\\site-packages\\pip\\_vendor\\pyproject_hooks\\_in_process\\_in_process.py\", line 353, in <module>\n",
" main()\n",
" File \"c:\\Users\\oscar\\Documents\\GitHub\\mso_3_4-td1\\.venv\\Lib\\site-packages\\pip\\_vendor\\pyproject_hooks\\_in_process\\_in_process.py\", line 335, in main\n",
" File \"c:\\Users\\oscar\\Documents\\GitHub\\mso_3_4-td1\\.venv\\Lib\\site-packages\\pip\\_vendor\\pyproject_hooks\\_in_process\\_in_process.py\", line 251, in build_wheel\n",
" File \"C:\\Users\\oscar\\AppData\\Local\\Temp\\pip-build-env-onf33rce\\overlay\\Lib\\site-packages\\setuptools\\build_meta.py\", line 404, in build_wheel\n",
" return self._build_with_temp_dir(\n",
" ^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
" File \"C:\\Users\\oscar\\AppData\\Local\\Temp\\pip-build-env-onf33rce\\overlay\\Lib\\site-packages\\setuptools\\build_meta.py\", line 389, in _build_with_temp_dir\n",
" self.run_setup()\n",
" File \"C:\\Users\\oscar\\AppData\\Local\\Temp\\pip-build-env-onf33rce\\overlay\\Lib\\site-packages\\setuptools\\build_meta.py\", line 480, in run_setup\n",
" File \"C:\\Users\\oscar\\AppData\\Local\\Temp\\pip-build-env-onf33rce\\overlay\\Lib\\site-packages\\setuptools\\build_meta.py\", line 311, in run_setup\n",
" exec(code, locals())\n",
" File \"<string>\", line 15, in <module>\n",
" Exception: You tried to install \"pytorch\". The package named for PyTorch is \"torch\"\n",
" [end of output]\n",
" \n",
" note: This error originates from a subprocess, and is likely not a problem with pip.\n",
" ERROR: Failed building wheel for pytorch\n",
"ERROR: Could not build wheels for pytorch, which is required to install pyproject.toml-based projects\n"
]
}
],
"source": [
"pip install pytorch"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Collecting gym==0.26.2Note: you may need to restart the kernel to use updated packages.\n",
"\n",
" Downloading gym-0.26.2.tar.gz (721 kB)\n",
" ---------------------------------------- 0.0/721.7 kB ? eta -:--:--\n",
" ---- ---------------------------------- 92.2/721.7 kB 2.6 MB/s eta 0:00:01\n",
" ------------ ------------------------- 235.5/721.7 kB 3.6 MB/s eta 0:00:01\n",
" ------------------ ------------------- 358.4/721.7 kB 2.8 MB/s eta 0:00:01\n",
" ------------------------- ------------ 481.3/721.7 kB 2.7 MB/s eta 0:00:01\n",
" -------------------------------- ----- 624.6/721.7 kB 2.8 MB/s eta 0:00:01\n",
" -------------------------------------- 721.7/721.7 kB 2.7 MB/s eta 0:00:00\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",
" Installing backend dependencies: started\n",
" Installing backend dependencies: finished with status 'done'\n",