osx - Import Module Error for Python-Pandas in Atom (works fine in CLI???) -
im new python , loving it. after while coding console in python core used syntax, focusing on key plotting , analysis libraries of pandas, numpy, , matplotlib. expect proceed scipy , pyspark in near future. far, ive installed on mac osx 10.11.3, python 2.7.10, ipython, matplotlib, numpy , pandas. used
pip install pandas --upgrade
to upgrade follows: successfully installed numpy-1.10.4 pandas-0.17.1 pytz-2015.7 six-1.10.0
i ran project in python with:
import pandas pd import numpy np import matplotlib plt
the project ran fine without errors in cli return error message when ran in atom editor (it runs fine numpy, matplotlib not pandas). message is:
import pandas pd importerror: no module named pandas
as pandas pd
import works fine form cli, can advise on why atom editor not able find when can find numpy np
, matplotlib plt
noting 3 library folders in same site-packages
folder on mac? also, if there anyway atom point pandas folder in site-packages on mac?
update 6th feb, 2016: uninstalled pandas
pip uninstall pandas
, reinstalledsite-packages
folder numpy & matplotlib are. reinstall done throughsudo easy_install pandas
, once again, pandas module not found in atom using cmd+i accessed python vm through cli running of program ,print pd.series(x)
example works find , return series array of x. numpy , matplot lib recognised in autocomplete in atom packages , panadas not, can assume "input console" features of pandas have yet discover why atom not link pandas. can experience on python-pandas , atom comment please , set me straight? appreciated... fix atom , use cmd+i function instead of cli every 2 mins... lol.. help..update #2 6th feb, 2016: confirm, have been working dataframes in panda using cli , works, returns errors pandas error handling library proving have pandas , cli allows work though when cmd+i, returns no pandas module message in atom. either bad error handling atom or bug not connecting pandas properly. thoughts on appreciated intend work extensively pandas.
so, have used pandas via cli though on atom when try process exact same .py file through atom check it, gives: dataframes_trainer.py", line 1, in <module> import pandas pd importerror: no module named pandas [finished in 0.062s]
error message.
my thoughts on conclude atom not recognise pandas package. when typing numpy onscreen in atom, autocomplete (intellisense) menu on screen recongises numpy , matplotlib not pandas. completes "pandas" not have package box icon beside other two. bug maybe? pandas in same .py file works find via cli run guess move on solution rather explanation. maybe atom team @ pandas , provide same on editor integration numpy , matplotlib? thought...
Comments
Post a Comment