26151

Jupyter Notebook: no module named pandas

Question:

I've searched through other questions but have not found anything that has helped (most just suggest you do install pandas with conda or pip). In my jupyter notebook I'm trying to import pandas (import pandas as pd) but I'm getting the following error:

<blockquote>

ModuleNotFoundError: No module named 'pandas'

</blockquote>

Some pertinent information:

<ul><li>I'm using python3</li> <li>I've installed pandas using conda install pandas </li> <li>My conda environment has pandas installed correctly. After activating the environment, I type python into the terminal and from there I can successfully import pandas and use it appropriately. This leads me to believe that it is an issue with my jupyter notebook. </li> </ul>

Answer1:

You can try: which conda and which python to see the exact location where conda and python was installed and which was launched.

And try using the absolute path of conda to launch jupyter.

For example, /opt/conda/bin/jupyter notebook

Recommend

  • Puppet test and remove an array of files/folders
  • take the average of each index in a double[] hash map and assign it to an output double[]
  • Excel VBA code to allow the user to choose the same cell on every sheet
  • XML Mixed content model with complex types SSIS error
  • Shopping Cart - The flow for sold out or less available items at checkout time?
  • Split Cell by Numbers Within Cell
  • Clearing the Android back stack
  • ModuleNotFoundError: No module named 'pandas._libs.tslibs.timedeltas'
  • What is the right way to invoke a button's click event?
  • No module named NaiveBayes
  • Virtualenvwrapper does not initialize after updating Python to 3.6
  • How can I list all users using firebase admin sdk
  • Jupyter Notebook: no module named pandas
  • Angular2 routing between sub-applications in modules
  • URL path parameters vs query parameters in Django
  • Scan installed software on Windows
  • HTML Form posts twice after submitting
  • ModuleNotFoundError: No module named 'matplotlib'
  • How to filter on year and quarter in pandas
  • Color time-series based on column values in pandas
  • R convert summary result (statistics with all dataframe columns) into dataframe
  • Django simple Captcha “No module named fields” error
  • How do I exclude a dependency in provided scope when running in Maven test scope?
  • Is there a perl module to validate passwords stored in “{crypt}hashedpassword” “{ssha}hashedpassword
  • Error when parsing timestamp with pandas read_csv
  • Why does access(2) check for real and not effective UID?
  • Meteor helpers not available in Angular template
  • DirectX11 ClearRenderTargetViewback with transparent buffer?
  • Why is the timeout on a windows udp receive socket always 500ms longer than set by SO_RCVTIMEO?
  • Web-crawler for facebook in python
  • Why winpcap requires both .lib and .dll to run?
  • Return words with double consecutive letters
  • Python: how to group similar lists together in a list of lists?
  • Unit Testing MVC Web Application in Visual Studio and Problem with QTAgent
  • using HTMLImports.whenReady not working in chrome
  • Hits per day in Google Big Query
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • Linking SubReports Without LinkChild/LinkMaster
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • Busy indicator not showing up in wpf window [duplicate]