15

I am unable to import pandas profiling in jupyter notebook. Could someone please tell me whats wrong. enter image description here

Simon
  • 5,464
  • 6
  • 49
  • 85
NEX
  • 533
  • 2
  • 4
  • 10

11 Answers11

19

Thanks a lot to all who tried to help me out. This worked.

import sys
!{sys.executable} -m pip install pandas-profiling
NEX
  • 533
  • 2
  • 4
  • 10
5

Sure, you can install via pip but I like to use conda for as many installs as possible to help keep the environment easier to work with.

The conda page shows multiple versions for pandas-profiling: https://anaconda.org/conda-forge/pandas-profiling

You need to specify the latest one when installing:

conda install -c conda-forge pandas-profiling=2.6.0

Replace 2.6.0 with the latest version.

wordsforthewise
  • 13,746
  • 5
  • 87
  • 117
3

For Mac

pip install pandas-profiling

And For Ubuntu

!pip install pandas-profiling
Ankit Kumar Rajpoot
  • 5,188
  • 2
  • 38
  • 32
3

If you are using Anaconda distribution then use this:

conda install -c conda-forge pandas-profiling

conda install -c conda-forge/label/cf201901 pandas-profiling

conda install -c conda-forge/label/cf202003 pandas-profiling

I was getting the same problem and it worked for me.

2

conda install -c conda-forge pandas-profiling Try this command to install If it doesn't work then try pip install pandas-profiling

Simon
  • 5,464
  • 6
  • 49
  • 85
Niranjan
  • 67
  • 7
1

If you run jupyter notebook so:

python -m jupyter notebook

You can install the packages so:

python -m pip install pandas-profiling

I had a lot of trouble because the 'python' of the jupyter notebook when I ran only jupyter notebook was another installation of python than the one on my bash. If you run the module 'jupyter notebook' and the module 'pip' with the commands 'python -m' before, you ensure that you are using the same installation.

Tomas G.
  • 3,784
  • 25
  • 28
1

There are multiple option to do so.

  1. Go to CMD & then type python -m pip install pandas-profiling

  2. Go to CMD & conda install -c conda-forge pandas-profiling=2.6.0

  3. import sys class in Jupyter note book & enter below line & enter !{sys.executable} -m pip install pandas-profiling Above is really cool to use.

  4. Little manual but works most of the time. Download pandas-profile lib from https://pypi.org/project/pandas-profiling/#modal-close extract it and paste C:\anaconda\Lib\site-packages Restart your Anaconda & happy to use.

I hope this will help.

1

Sometimes it's an issue with the version. Try this

!pip install -U pandas-profiling

It's working for me.

Dr Nisha Arora
  • 632
  • 1
  • 10
  • 23
0

Run "pip install pandas-profiling" in Anaconda command prompt then import panadas_profiling, it will work

F J Patil
  • 59
  • 4
0

you can run your anaconda prompt as administrator and do: conda intall -c anaconda pandas-profiling

While running it may ask for updating the present libraries, do "y" for it. After completion go to jupyter notebook and do "import pandas_profiling"

Hope it works!!

0

Try this:

!pip install pandas-profiling[notebook]
skytree
  • 1,060
  • 2
  • 13
  • 38