Spaces:
Runtime error
Runtime error
File size: 4,431 Bytes
2a42c92 |
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 |
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"id": "83db6da0-fe60-4e78-a92f-ad36ed139a97",
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Collecting package metadata (current_repodata.json): ...working... done\n",
"Solving environment: ...working... unsuccessful initial attempt using frozen solve. Retrying with flexible solve.\n",
"Solving environment: ...working... unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.\n",
"Collecting package metadata (repodata.json): ...working... done\n",
"Solving environment: ...working... unsuccessful initial attempt using frozen solve. Retrying with flexible solve.\n",
"Solving environment: ...working... \n",
"Found conflicts! Looking for incompatible packages.\n",
"This can take several minutes. Press CTRL-C to abort.\n",
"failed\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"Building graph of deps: 0%| | 0/5 [00:00<?, ?it/s]\n",
"Examining @/win-64::__win==0=0: 0%| | 0/5 [00:00<?, ?it/s]\n",
"Examining python=3.11: 20%|## | 1/5 [00:00<?, ?it/s] \n",
"Examining tensorflow: 40%|#### | 2/5 [00:00<00:00, 24.98it/s]\n",
"Examining @/win-64::__cuda==12.0=0: 60%|###### | 3/5 [00:00<00:00, 4.46it/s]\n",
"Examining @/win-64::__cuda==12.0=0: 80%|######## | 4/5 [00:00<00:00, 5.94it/s]\n",
"Examining @/win-64::__archspec==1=x86_64: 80%|######## | 4/5 [00:00<00:00, 5.94it/s]\n",
" \n",
"\n",
"Determining conflicts: 0%| | 0/5 [00:00<?, ?it/s]\n",
"Examining conflict for python tensorflow: 0%| | 0/5 [00:00<?, ?it/s]\n",
" \n",
"\n",
"UnsatisfiableError: The following specifications were found\n",
"to be incompatible with the existing python installation in your environment:\n",
"\n",
"Specifications:\n",
"\n",
" - tensorflow -> python[version='3.10.*|3.9.*|3.8.*|3.7.*|3.6.*|3.5.*']\n",
"\n",
"Your python: python=3.11\n",
"\n",
"If python is on the left-most side of the chain, that's the version you've asked for.\n",
"When python appears to the right, that indicates that the thing on the left is somehow\n",
"not available for the python version you are constrained to. Note that conda will not\n",
"change your python version to a different minor version unless you explicitly specify\n",
"that.\n",
"\n",
"\n",
"\n"
]
},
{
"ename": "ModuleNotFoundError",
"evalue": "No module named 'tensorflow'",
"output_type": "error",
"traceback": [
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[1;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[1;32mIn[2], line 2\u001b[0m\n\u001b[0;32m 1\u001b[0m get_ipython()\u001b[38;5;241m.\u001b[39msystem(\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mconda install tensorflow\u001b[39m\u001b[38;5;124m'\u001b[39m)\n\u001b[1;32m----> 2\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mtensorflow\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m \u001b[38;5;21;01mtf\u001b[39;00m\n",
"\u001b[1;31mModuleNotFoundError\u001b[0m: No module named 'tensorflow'"
]
}
],
"source": [
"!conda install tensorflow\n",
"import tensorflow as tf"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a9255a88-0393-4c28-bdd3-2557d3006972",
"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.11.5"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
|