Pandas Module: Works in PyCharm but not Terminal
Question: I've written a python script (called python_script.py) in PyCharm that relies
on the pandas module. The thing is, when I run the script in PyCharm, it works
perfectly. But when I call it in terminal, I get the following error:

    
    
    Traceback (most recent call last):
    File "./sub_directory/python_script.py", line 9, in <module>
    import pandas
    ImportError: No module named pandas
    


Answer: You could install pandas into your anaconda installation by doing `conda
install pandas` at the terminal. That's probably the easiest solution, but you
could also use the other Python installation like this:

    
    
    /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents‌​/MacOS/Python python_script.py
    

You could also create an alias within your terminal so that `python` would
point to the system python installation. To do that you can put the line

    
    
    alias python=/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents‌​/MacOS/Python
    

in your `~/.bash_profile`

(For reference: <http://www.moncefbelyamani.com/create-aliases-in-bash-
profile-to-assign-shortcuts-for-common-terminal-commands/>)

