Created
January 3, 2024 06:28
-
-
Save vanangamudi/76077b6e098189cc4f3b4876d7290426 to your computer and use it in GitHub Desktop.
ModuleNotFoundError: No module named 'pandas'. where as shell command within cells can import it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"id": "23109fbf-5e7c-4910-a88e-cbdac15625cb", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"ename": "ModuleNotFoundError", | |
"evalue": "No module named 'pandas'", | |
"output_type": "error", | |
"traceback": [ | |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | |
"\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)", | |
"Cell \u001b[0;32mIn[1], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mpandas\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m \u001b[38;5;21;01mpd\u001b[39;00m\n", | |
"\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'pandas'" | |
] | |
} | |
], | |
"source": [ | |
"import pandas as pd" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 2, | |
"id": "2393231d-02b1-42d2-b200-a785d090198c", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"Requirement already satisfied: pandas in /home/vanangamudi/.virtualenvs/pinnxde/lib/python3.10/site-packages (2.1.4)\n", | |
"Requirement already satisfied: numpy<2,>=1.22.4 in /home/vanangamudi/.virtualenvs/pinnxde/lib/python3.10/site-packages (from pandas) (1.26.2)\n", | |
"Requirement already satisfied: python-dateutil>=2.8.2 in /home/vanangamudi/.virtualenvs/pinnxde/lib/python3.10/site-packages (from pandas) (2.8.2)\n", | |
"Requirement already satisfied: pytz>=2020.1 in /home/vanangamudi/.virtualenvs/pinnxde/lib/python3.10/site-packages (from pandas) (2023.3.post1)\n", | |
"Requirement already satisfied: tzdata>=2022.1 in /home/vanangamudi/.virtualenvs/pinnxde/lib/python3.10/site-packages (from pandas) (2023.4)\n", | |
"Requirement already satisfied: six>=1.5 in /home/vanangamudi/.virtualenvs/pinnxde/lib/python3.10/site-packages (from python-dateutil>=2.8.2->pandas) (1.16.0)\n" | |
] | |
} | |
], | |
"source": [ | |
"!pip install pandas" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 3, | |
"id": "94969898-3722-4760-989c-1e4bbe5c47cf", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"2.1.4\n" | |
] | |
} | |
], | |
"source": [ | |
"!python -c \"import pandas as pd; print(pd.__version__)\"" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 4, | |
"id": "6d31c191-3b9f-419a-a04a-05c987720299", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"/home/vanangamudi/.virtualenvs/pinnxde/bin/python\n" | |
] | |
} | |
], | |
"source": [ | |
"!which python" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 5, | |
"id": "030d526f-1e2e-4587-8b04-a5b21f6c34f6", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"Linux kaithadi 6.2.0-39-generic #40~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 16 10:53:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux\n" | |
] | |
} | |
], | |
"source": [ | |
"!uname -a" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 6, | |
"id": "af011819-2dcb-42f3-8adc-cda11fe51056", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"anyio==4.2.0\n", | |
"argon2-cffi==23.1.0\n", | |
"argon2-cffi-bindings==21.2.0\n", | |
"arrow==1.3.0\n", | |
"asttokens==2.4.1\n", | |
"async-lru==2.0.4\n", | |
"attrs==23.2.0\n", | |
"Babel==2.14.0\n", | |
"beautifulsoup4==4.12.2\n", | |
"bleach==6.1.0\n", | |
"certifi==2023.11.17\n", | |
"cffi==1.16.0\n", | |
"charset-normalizer==3.3.2\n", | |
"comm==0.2.1\n", | |
"contourpy==1.2.0\n", | |
"cycler==0.12.1\n", | |
"debugpy==1.8.0\n", | |
"decorator==5.1.1\n", | |
"defusedxml==0.7.1\n", | |
"exceptiongroup==1.2.0\n", | |
"executing==2.0.1\n", | |
"fastjsonschema==2.19.1\n", | |
"filelock==3.13.1\n", | |
"fonttools==4.47.0\n", | |
"fqdn==1.5.1\n", | |
"fsspec==2023.12.2\n", | |
"idna==3.6\n", | |
"ipykernel==6.28.0\n", | |
"ipython==8.19.0\n", | |
"isoduration==20.11.0\n", | |
"jedi==0.19.1\n", | |
"Jinja2==3.1.2\n", | |
"joblib==1.3.2\n", | |
"json5==0.9.14\n", | |
"jsonpointer==2.4\n", | |
"jsonschema==4.20.0\n", | |
"jsonschema-specifications==2023.12.1\n", | |
"jupyter-events==0.9.0\n", | |
"jupyter-lsp==2.2.1\n", | |
"jupyter_client==8.6.0\n", | |
"jupyter_core==5.6.1\n", | |
"jupyter_server==2.12.1\n", | |
"jupyter_server_terminals==0.5.1\n", | |
"jupyterlab==4.0.10\n", | |
"jupyterlab_pygments==0.3.0\n", | |
"jupyterlab_server==2.25.2\n", | |
"kiwisolver==1.4.5\n", | |
"MarkupSafe==2.1.3\n", | |
"matplotlib==3.8.2\n", | |
"matplotlib-inline==0.1.6\n", | |
"mistune==3.0.2\n", | |
"mpmath==1.3.0\n", | |
"nbclient==0.9.0\n", | |
"nbconvert==7.14.0\n", | |
"nbformat==5.9.2\n", | |
"nest-asyncio==1.5.8\n", | |
"networkx==3.2.1\n", | |
"notebook_shim==0.2.3\n", | |
"numpy==1.26.2\n", | |
"nvidia-cublas-cu12==12.1.3.1\n", | |
"nvidia-cuda-cupti-cu12==12.1.105\n", | |
"nvidia-cuda-nvrtc-cu12==12.1.105\n", | |
"nvidia-cuda-runtime-cu12==12.1.105\n", | |
"nvidia-cudnn-cu12==8.9.2.26\n", | |
"nvidia-cufft-cu12==11.0.2.54\n", | |
"nvidia-curand-cu12==10.3.2.106\n", | |
"nvidia-cusolver-cu12==11.4.5.107\n", | |
"nvidia-cusparse-cu12==12.1.0.106\n", | |
"nvidia-nccl-cu12==2.18.1\n", | |
"nvidia-nvjitlink-cu12==12.3.101\n", | |
"nvidia-nvtx-cu12==12.1.105\n", | |
"onedrivedownloader==1.1.3\n", | |
"overrides==7.4.0\n", | |
"packaging==23.2\n", | |
"pandas==2.1.4\n", | |
"pandocfilters==1.5.0\n", | |
"parso==0.8.3\n", | |
"pexpect==4.9.0\n", | |
"pillow==10.2.0\n", | |
"platformdirs==4.1.0\n", | |
"prometheus-client==0.19.0\n", | |
"prompt-toolkit==3.0.43\n", | |
"psutil==5.9.7\n", | |
"ptyprocess==0.7.0\n", | |
"pure-eval==0.2.2\n", | |
"pycparser==2.21\n", | |
"Pygments==2.17.2\n", | |
"pyparsing==3.1.1\n", | |
"python-dateutil==2.8.2\n", | |
"python-json-logger==2.0.7\n", | |
"pytz==2023.3.post1\n", | |
"PyYAML==6.0.1\n", | |
"pyzmq==25.1.2\n", | |
"referencing==0.32.0\n", | |
"requests==2.31.0\n", | |
"rfc3339-validator==0.1.4\n", | |
"rfc3986-validator==0.1.1\n", | |
"rpds-py==0.16.2\n", | |
"scikit-learn==1.3.2\n", | |
"scipy==1.11.4\n", | |
"Send2Trash==1.8.2\n", | |
"six==1.16.0\n", | |
"sniffio==1.3.0\n", | |
"soupsieve==2.5\n", | |
"stack-data==0.6.3\n", | |
"sympy==1.12\n", | |
"terminado==0.18.0\n", | |
"threadpoolctl==3.2.0\n", | |
"tinycss2==1.2.1\n", | |
"tomli==2.0.1\n", | |
"torch==2.1.2\n", | |
"tornado==6.4\n", | |
"tqdm==4.66.1\n", | |
"traitlets==5.14.1\n", | |
"triton==2.1.0\n", | |
"types-python-dateutil==2.8.19.14\n", | |
"typing_extensions==4.9.0\n", | |
"tzdata==2023.4\n", | |
"uri-template==1.3.0\n", | |
"urllib3==2.1.0\n", | |
"wcwidth==0.2.12\n", | |
"webcolors==1.13\n", | |
"webencodings==0.5.1\n", | |
"websocket-client==1.7.0\n" | |
] | |
} | |
], | |
"source": [ | |
"!pip freeze" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "pinnxde", | |
"language": "python", | |
"name": "pinnxde" | |
}, | |
"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.10.12" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 5 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment