Do you know why pip list shows one installed version but then python shell shows another?

I have created a virtual environment. I activate it with conda activate my_venv. I do pip list and check statsmodels version. result -->0.12.1 I do pip freeze. The same result. I get inside of the python shell and execute the next code:

import sys
import statsmodels
print(sys.prefix)
print(statsmodels.__version__)

the output:

'/home/skootik/anaconda3/envs/my_venv'
'0.10.2'

Does anybody know why?

Thank you in advance

Upvotes: 1

Views: 427

Answers (1)

rzlvmp
rzlvmp

Reputation: 9384

  1. Check what pip you are using
which pip

Is it inside /anaconda3/bin?

  1. Check anaconda envs
conda info --envs

Is my_env == prodenv?

  1. Try to check version via conda command
conda list statsmodels

conda has own package manager

Upvotes: 1

Related Questions