Python Forum
missing pandas even if in conda list
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
missing pandas even if in conda list
Dear Python Experts,

I wonder why pandas is noted as missing even if I have it in my list.

(donkey) C:\Users\HOL\d2>conda list
# packages in environment at C:\Users\HOL\AppData\Local\Continuum\miniconda3\envs\donkey:
# Name                    Version                   Build  Channel
pandas                    0.23.0           py36h830ac7b_0
pip                       9.0.1                    py36_1

(donkey) C:\Users\HOL\d2>
Traceback (most recent call last):
  File "C:\Users\HOL\d2\", line 1, in <module>
    import pandas as pd
ModuleNotFoundError: No module named 'pandas'

(donkey) C:\Users\HOL\d2>
Any help is much appreciated.
Use always python to execute a script.
If do it without python can use a OS system python version,and not the one in virtual environment.
# Make environment 
λ conda create -n donkey scipy pandas requests

# Activate enviroment
λ activate donkey 

(donkey) G:\Anaconda3\Scripts
So at this point can check that right python is used in virtual environment.
I user cmder and can use which python
From cmd can do it like this.
(donkey) G:\Anaconda3\Scripts
λ which python

# cmd
(donkey) G:\Anaconda3\Scripts
λ python -c "import sys; print(sys.executable)"
So when use python it will use the Pandas version that i did make with conda create -n donkey scipy pandas requests
Awesome. Thanks!

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pycharm and Conda annalma 4 314 Jan-05-2021, 04:16 PM
Last Post: paul18fr
  Comparing results within a list and appending to pandas dataframe Aryagm 1 325 Dec-17-2020, 01:08 PM
Last Post: palladium
  [pandas] How to reshape the list Mekala 6 941 Jul-26-2020, 12:49 AM
Last Post: Mekala
  pandas read_csv can't handle missing data mrdominikku 0 565 Jul-09-2020, 12:26 PM
Last Post: mrdominikku
  pandas.read_sas with chunksize: IndexError list index out of range axelle 0 781 Jan-28-2020, 09:30 AM
Last Post: axelle
  Inserting data from python list into a pandas dataframe mahmoud899 0 1,000 Mar-02-2019, 04:07 AM
Last Post: mahmoud899
  List and Dictionaries with Pandas Balinor 3 1,213 Aug-20-2018, 10:47 PM
Last Post: ichabod801
  Pandas - Write to Exisitng Excel File - Sorted List dj99 4 6,445 Jul-29-2018, 07:56 AM
Last Post: dj99
  1 I cant read many stocks(list) with pandas-datareader from yahoo Davidii111 1 2,599 Dec-27-2017, 04:47 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020