Delete aaaa.ipynb
Browse files- aaaa.ipynb +0 -174
aaaa.ipynb
DELETED
|
@@ -1,174 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"cells": [
|
| 3 |
-
{
|
| 4 |
-
"cell_type": "markdown",
|
| 5 |
-
"id": "5106b4ad",
|
| 6 |
-
"metadata": {},
|
| 7 |
-
"source": [
|
| 8 |
-
"# Setup dell'ambiente virtuale e installazione delle dipendenze\n",
|
| 9 |
-
"\n",
|
| 10 |
-
"Questo notebook ti guiderΓ nell'installazione delle dipendenze specificate nel tuo ambiente virtuale. Segui i passaggi di seguito:"
|
| 11 |
-
]
|
| 12 |
-
},
|
| 13 |
-
{
|
| 14 |
-
"cell_type": "code",
|
| 15 |
-
"execution_count": 1,
|
| 16 |
-
"id": "3d7b3a9f",
|
| 17 |
-
"metadata": {
|
| 18 |
-
"execution": {
|
| 19 |
-
"iopub.execute_input": "2023-08-22T01:45:25.049902Z",
|
| 20 |
-
"iopub.status.busy": "2023-08-22T01:45:25.049320Z",
|
| 21 |
-
"iopub.status.idle": "2023-08-22T01:45:28.344168Z",
|
| 22 |
-
"shell.execute_reply": "2023-08-22T01:45:28.343365Z",
|
| 23 |
-
"shell.execute_reply.started": "2023-08-22T01:45:25.049877Z"
|
| 24 |
-
}
|
| 25 |
-
},
|
| 26 |
-
"outputs": [
|
| 27 |
-
{
|
| 28 |
-
"name": "stdout",
|
| 29 |
-
"output_type": "stream",
|
| 30 |
-
"text": [
|
| 31 |
-
"Collecting virtualenv\n",
|
| 32 |
-
" Obtaining dependency information for virtualenv from https://files.pythonhosted.org/packages/17/8d/6989e5dcd812520cbf9f31be2b08643ae3a895586601bbab501df8ed6e54/virtualenv-20.24.3-py3-none-any.whl.metadata\n",
|
| 33 |
-
" Downloading virtualenv-20.24.3-py3-none-any.whl.metadata (4.5 kB)\n",
|
| 34 |
-
"Collecting distlib<1,>=0.3.7 (from virtualenv)\n",
|
| 35 |
-
" Obtaining dependency information for distlib<1,>=0.3.7 from https://files.pythonhosted.org/packages/43/a0/9ba967fdbd55293bacfc1507f58e316f740a3b231fc00e3d86dc39bc185a/distlib-0.3.7-py2.py3-none-any.whl.metadata\n",
|
| 36 |
-
" Downloading distlib-0.3.7-py2.py3-none-any.whl.metadata (5.1 kB)\n",
|
| 37 |
-
"Collecting filelock<4,>=3.12.2 (from virtualenv)\n",
|
| 38 |
-
" Obtaining dependency information for filelock<4,>=3.12.2 from https://files.pythonhosted.org/packages/00/45/ec3407adf6f6b5bf867a4462b2b0af27597a26bd3cd6e2534cb6ab029938/filelock-3.12.2-py3-none-any.whl.metadata\n",
|
| 39 |
-
" Downloading filelock-3.12.2-py3-none-any.whl.metadata (2.7 kB)\n",
|
| 40 |
-
"Collecting platformdirs<4,>=3.9.1 (from virtualenv)\n",
|
| 41 |
-
" Obtaining dependency information for platformdirs<4,>=3.9.1 from https://files.pythonhosted.org/packages/14/51/fe5a0d6ea589f0d4a1b97824fb518962ad48b27cd346dcdfa2405187997a/platformdirs-3.10.0-py3-none-any.whl.metadata\n",
|
| 42 |
-
" Downloading platformdirs-3.10.0-py3-none-any.whl.metadata (11 kB)\n",
|
| 43 |
-
"Downloading virtualenv-20.24.3-py3-none-any.whl (3.0 MB)\n",
|
| 44 |
-
"\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m3.0/3.0 MB\u001b[0m \u001b[31m22.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",
|
| 45 |
-
"\u001b[?25hDownloading distlib-0.3.7-py2.py3-none-any.whl (468 kB)\n",
|
| 46 |
-
"\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m468.9/468.9 kB\u001b[0m \u001b[31m83.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
| 47 |
-
"\u001b[?25hDownloading filelock-3.12.2-py3-none-any.whl (10 kB)\n",
|
| 48 |
-
"Downloading platformdirs-3.10.0-py3-none-any.whl (17 kB)\n",
|
| 49 |
-
"Installing collected packages: distlib, platformdirs, filelock, virtualenv\n",
|
| 50 |
-
" Attempting uninstall: platformdirs\n",
|
| 51 |
-
" Found existing installation: platformdirs 2.6.2\n",
|
| 52 |
-
" Uninstalling platformdirs-2.6.2:\n",
|
| 53 |
-
" Successfully uninstalled platformdirs-2.6.2\n",
|
| 54 |
-
" Attempting uninstall: filelock\n",
|
| 55 |
-
" Found existing installation: filelock 3.9.0\n",
|
| 56 |
-
" Uninstalling filelock-3.9.0:\n",
|
| 57 |
-
" Successfully uninstalled filelock-3.9.0\n",
|
| 58 |
-
"Successfully installed distlib-0.3.7 filelock-3.12.2 platformdirs-3.10.0 virtualenv-20.24.3\n",
|
| 59 |
-
"\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n",
|
| 60 |
-
"\u001b[0m"
|
| 61 |
-
]
|
| 62 |
-
}
|
| 63 |
-
],
|
| 64 |
-
"source": [
|
| 65 |
-
"# Installazione della libreria venv\n",
|
| 66 |
-
"import sys\n",
|
| 67 |
-
"!{sys.executable} -m pip install virtualenv"
|
| 68 |
-
]
|
| 69 |
-
},
|
| 70 |
-
{
|
| 71 |
-
"cell_type": "code",
|
| 72 |
-
"execution_count": 2,
|
| 73 |
-
"id": "d6d5cbf7",
|
| 74 |
-
"metadata": {
|
| 75 |
-
"execution": {
|
| 76 |
-
"iopub.execute_input": "2023-08-22T01:45:28.345785Z",
|
| 77 |
-
"iopub.status.busy": "2023-08-22T01:45:28.345592Z",
|
| 78 |
-
"iopub.status.idle": "2023-08-22T01:45:31.952069Z",
|
| 79 |
-
"shell.execute_reply": "2023-08-22T01:45:31.951121Z",
|
| 80 |
-
"shell.execute_reply.started": "2023-08-22T01:45:28.345766Z"
|
| 81 |
-
}
|
| 82 |
-
},
|
| 83 |
-
"outputs": [],
|
| 84 |
-
"source": [
|
| 85 |
-
"# Creazione dell'ambiente virtuale\n",
|
| 86 |
-
"!python -m venv myenv"
|
| 87 |
-
]
|
| 88 |
-
},
|
| 89 |
-
{
|
| 90 |
-
"cell_type": "code",
|
| 91 |
-
"execution_count": 3,
|
| 92 |
-
"id": "b96aed09",
|
| 93 |
-
"metadata": {
|
| 94 |
-
"execution": {
|
| 95 |
-
"iopub.execute_input": "2023-08-22T01:45:31.953987Z",
|
| 96 |
-
"iopub.status.busy": "2023-08-22T01:45:31.953383Z",
|
| 97 |
-
"iopub.status.idle": "2023-08-22T01:45:32.370358Z",
|
| 98 |
-
"shell.execute_reply": "2023-08-22T01:45:32.369498Z",
|
| 99 |
-
"shell.execute_reply.started": "2023-08-22T01:45:31.953955Z"
|
| 100 |
-
}
|
| 101 |
-
},
|
| 102 |
-
"outputs": [],
|
| 103 |
-
"source": [
|
| 104 |
-
"# Attivazione dell'ambiente virtuale\n",
|
| 105 |
-
"import os\n",
|
| 106 |
-
"if os.name == 'posix':\n",
|
| 107 |
-
" !source myenv/bin/activate\n",
|
| 108 |
-
"elif os.name == 'nt':\n",
|
| 109 |
-
" !myenv\\Scripts\\activate"
|
| 110 |
-
]
|
| 111 |
-
},
|
| 112 |
-
{
|
| 113 |
-
"cell_type": "code",
|
| 114 |
-
"execution_count": 5,
|
| 115 |
-
"id": "45a1ff11",
|
| 116 |
-
"metadata": {
|
| 117 |
-
"execution": {
|
| 118 |
-
"iopub.execute_input": "2023-08-22T01:46:18.671910Z",
|
| 119 |
-
"iopub.status.busy": "2023-08-22T01:46:18.671010Z",
|
| 120 |
-
"iopub.status.idle": "2023-08-22T01:46:21.223585Z",
|
| 121 |
-
"shell.execute_reply": "2023-08-22T01:46:21.222934Z",
|
| 122 |
-
"shell.execute_reply.started": "2023-08-22T01:46:18.671879Z"
|
| 123 |
-
}
|
| 124 |
-
},
|
| 125 |
-
"outputs": [
|
| 126 |
-
{
|
| 127 |
-
"name": "stdout",
|
| 128 |
-
"output_type": "stream",
|
| 129 |
-
"text": [
|
| 130 |
-
"Requirement already satisfied: huggingface_hub==0.16.4 in /usr/local/lib/python3.9/dist-packages (0.16.4)\n",
|
| 131 |
-
"Requirement already satisfied: filelock==3.12.2 in /usr/local/lib/python3.9/dist-packages (3.12.2)\n",
|
| 132 |
-
"Requirement already satisfied: fsspec==2023.6.0 in /usr/local/lib/python3.9/dist-packages (2023.6.0)\n",
|
| 133 |
-
"Requirement already satisfied: requests==2.31.0 in /usr/local/lib/python3.9/dist-packages (2.31.0)\n",
|
| 134 |
-
"Requirement already satisfied: tqdm==4.66.1 in /usr/local/lib/python3.9/dist-packages (4.66.1)\n",
|
| 135 |
-
"Requirement already satisfied: pyyaml==6.0.1 in /usr/local/lib/python3.9/dist-packages (6.0.1)\n",
|
| 136 |
-
"Requirement already satisfied: typing-extensions==4.7.1 in /usr/local/lib/python3.9/dist-packages (4.7.1)\n",
|
| 137 |
-
"Requirement already satisfied: packaging==23.1 in /usr/local/lib/python3.9/dist-packages (23.1)\n",
|
| 138 |
-
"Requirement already satisfied: charset-normalizer==3.2.0 in /usr/local/lib/python3.9/dist-packages (3.2.0)\n",
|
| 139 |
-
"Requirement already satisfied: idna==3.4 in /usr/local/lib/python3.9/dist-packages (3.4)\n",
|
| 140 |
-
"Requirement already satisfied: urllib3==2.0.4 in /usr/local/lib/python3.9/dist-packages (2.0.4)\n",
|
| 141 |
-
"Requirement already satisfied: certifi==2023.7.22 in /usr/local/lib/python3.9/dist-packages (2023.7.22)\n",
|
| 142 |
-
"\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n",
|
| 143 |
-
"\u001b[0m"
|
| 144 |
-
]
|
| 145 |
-
}
|
| 146 |
-
],
|
| 147 |
-
"source": [
|
| 148 |
-
"# Installazione delle dipendenze\n",
|
| 149 |
-
"!pip install huggingface_hub==0.16.4 filelock==3.12.2 fsspec==2023.6.0 requests==2.31.0 tqdm==4.66.1 pyyaml==6.0.1 typing-extensions==4.7.1 packaging==23.1 charset-normalizer==3.2.0 idna==3.4 urllib3==2.0.4 certifi==2023.7.22"
|
| 150 |
-
]
|
| 151 |
-
}
|
| 152 |
-
],
|
| 153 |
-
"metadata": {
|
| 154 |
-
"kernelspec": {
|
| 155 |
-
"display_name": "Python 3 (ipykernel)",
|
| 156 |
-
"language": "python",
|
| 157 |
-
"name": "python3"
|
| 158 |
-
},
|
| 159 |
-
"language_info": {
|
| 160 |
-
"codemirror_mode": {
|
| 161 |
-
"name": "ipython",
|
| 162 |
-
"version": 3
|
| 163 |
-
},
|
| 164 |
-
"file_extension": ".py",
|
| 165 |
-
"mimetype": "text/x-python",
|
| 166 |
-
"name": "python",
|
| 167 |
-
"nbconvert_exporter": "python",
|
| 168 |
-
"pygments_lexer": "ipython3",
|
| 169 |
-
"version": "3.9.16"
|
| 170 |
-
}
|
| 171 |
-
},
|
| 172 |
-
"nbformat": 4,
|
| 173 |
-
"nbformat_minor": 5
|
| 174 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|