Python Forum
import pandas as pd not working in pclinuxos
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
import pandas as pd not working in pclinuxos
#1
Running python 3.6.5 in pclinuxos. Installed python3-pandas using Synaptic package manager. Tried to import pandas as pd but received "No module named pandas" message. Is this an address problem?
Reply
#2
Do you have more than one version of python installed?
You may have installed Pandas to a version other than the one you intended to.
Try from command line:
python -V
pip -V
Do both point to desired version?
Reply
#3
The answer is yes. When I tried to install IDLE and subsequently Sublime Text, the pclinuxos forum advised that I cannot remove it's version of Python2. After restoring Python2, I was able to run Python3 using both editors. I settled on Sublime Text. I am able to import cvs. Is pandas also a module?

I installed python3-pip, but the command could not find it. See the results below:

[[email protected] ~]$ python -V
Python 2.7.9
[[email protected] ~]$ pip -V
bash: pip: command not found
[[email protected] ~]$
Reply
#4
try: pip3 -V
and you may have to use python3 in python commands python3 -V
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  import csv adding a header with pandas Soares 0 1,012 Dec-16-2021, 12:16 PM
Last Post: Soares
  How to import an xml file to Pandas sjhazard 0 1,634 Jun-08-2021, 08:19 PM
Last Post: sjhazard
  Import multiple CSV files into pandas Krayna 0 1,233 May-20-2021, 04:56 PM
Last Post: Krayna
  Pandas replace function not working on datafram with floats bcrypto 1 1,749 Apr-12-2021, 08:59 PM
Last Post: bcrypto
  Python Custom Module not working in Jupyter Notebook with Pandas fid 0 1,446 Jul-04-2020, 11:05 AM
Last Post: fid
  Pandas Import CSV count between numerical values within 1 Column ptaylor520 3 1,898 Jul-16-2019, 08:13 AM
Last Post: ptaylor520
  Working with date indexes (pandas) dervast 0 1,575 Apr-05-2019, 01:29 PM
Last Post: dervast
  Trying to import JSON data into Python/Pandas DataFrame then edit then write CSV Rhubear 0 3,484 Jul-23-2018, 09:50 PM
Last Post: Rhubear
  Installing from source and getting import working in linux poutila 9 4,095 Jan-18-2018, 10:43 AM
Last Post: poutila
  pandas filter not working issac_n 10 8,111 Jan-11-2018, 08:28 AM
Last Post: issac_n

Forum Jump:

User Panel Messages

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