{ "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 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 }