Pandas version is different in Anaconda Navigator and Anaconda Prompt - python

I tried importing modin in my jupyter notebook. when I run the cell
import modin.pandas as pd
I get the following warning
UserWarning: The pandas version installed 1.2.3 does not match the supported pandas version in Modin 1.2.4. This may cause undesired side effects!
I tried updating my pandas using conda install pandas=1.2.4, it did not work, the command prompt got stuck at 'solving environment' stage for a long time and I had to stop manually. - attached is the screen shot Anaconda Prompt Install. I used pip install pandas==1.2.4, it worked. Now my anaconda prompt shows pandas version as 1.2.4, but my anaconda navigator shows 1.2.3. Attached are screenshots Anaconda Navigator, Anaconda Prompt. How do I resolve this issue/use modin without any warnings?
Any help would be greatly appreciated, Thank you!

Related

jupyter notebook is loading old version of package despite updates

I'm using SunPy in an environment, and have updated in the command line using conda update sunpy. According to the command line, I am using the current version (4.13.0). However, when I open jupyter and load a notebook, I get the following:
import sunpy as sp
print(sp.__version__)
3.1.7
I've checked to make sure that sunpy was updated in the right folder, I used the right command, I was within the environment when I updated, etc. I'm still getting the wrong version, even if I try %conda install -c conda-forge sunpy to update within the jupyter notebook itself (it says it's already up-to-date). Any ideas on how to force it to load the correct version? Thanks in advance!
This worked for me. Not for sunpy but pandas. I executed line by line within nb cell.
!pip install pandas==1.3.5
%conda install -c conda-forge pandas
import pandas as pd
Then pd. __version__
i get: '1.3.5'

why does import pandas suddenly not work?

I am running the latest anaconda on ubuntu linux. Everything was working ok until this week. I can't import pandas on python3. I could last week using the same programs. I've tried it on python called from the bash and also from spyder and jupyter, and I get a message that it can't find pandas. I've tried reinstalling pandas using both pip and conda, and it said that it was correctly installed.
Any suggestions?
Thank you.
Howard
You can create a new environment on Anaconda and then install pandas in that environment. Otherwise, try re-installing Anaconda.

anaconda navigator the following packages will be modified solving package specifications Issue

I have a problem about install package via Anaconda Navigator.
I tried to install geopandas but A lot of time has passed and the process could not be done.
I'm stuck in there.
Here is the screenshot as shown below.
How can I fix it.
I installed it from Command Line in Conda. The solution is shown below.
conda install -c conda-forge geopandas

Jupyter Notebooks: Updated packages don't update inside the notebook

I had an annoyance with some Pandas operations and someone suggested that upgrading it to the latest version might solve the problem.
I updated it from version 0.24.1 to 0.25.3
When I check the version in my virtual environment I get:
(matrix) ➜ web git:(T24_2019) pip freeze | grep pandas
pandas==0.25.3
But when I do the same thing inside the notebooks I get:
pandas==0.23.4
Note: you may need to restart the kernel to use updated packages.
I did restart the kernel many times, but it never worked.
Is there a specific way to restart it? Does it have anything to do with iPython having other versions of my packages installed?
Note: I do not use Anaconda.
Thank you!
It seems that you check the versions of two different virtual environments. What you have to do is to upgrade the package of the virtualenv where your Jupyter Notebook is running.
As #The Half-Blood Prince already mentioned, you can do this by running the following command in a cell of your jupyter notebook:
!pip install --upgrade pandas

No module named Pandas in Jupyter Notebook

I know there is a huge number of questions on this topics, but not even one worked for me, not here, not on github.
I have installed anaconda2 for macOS a few days before. I know pandas come with Anaconda by default, and in the last year I haven't any trouble with any python package on Ubuntu, but now I have a weird problem.
When I run jupyter notebook and import pandas as pd, I got an error: no module named pandas. It's not just about pandas, none of libraries work.
When I try to install pandas with conda, return me Requirement already satisfied. The same with pip.
Also, I have tried to run jupyter notebook with a full path to jupyter package, and doesn't help either.
Probably there is a problem with PATH, but I'm not really good with that and not sure what to do.
But everything works fine when I run iPython in terminal, python in terminal, just doesn't work in jupyter notebook.
> python --version
: Python 2.7.15 :: Anaconda, Inc.
> which python :/anaconda2/bin/python
> which jupyter-notebook:
/anaconda2/bin/jupyter-notebook
> conda env list:
conda environments:
base * /anaconda2
Thanks for any help in advance.
Try this in jupyter cell:
!pip install pandas

Categories

Resources