user3915946
user3915946

Reputation: 1

error in import pandas after installing it using pip

I installed pandas using pip and get the following message "pip install pandas Requirement already satisfied (use --upgrade to upgrade): pandas in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages Cleaning up..."

When I load up python and try to import pandas, it says module not found. Please help

Upvotes: 0

Views: 1215

Answers (2)

travelingbones
travelingbones

Reputation: 8408

Following the previous answer try this after opening a python shell:

import sys 
new_path = "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages" # or wherever your pip install drops things
sys.path.append(new_path)
import pandas

Upvotes: 0

user3916038
user3916038

Reputation: 11

Try to locate your pandas lib in /python*/lib/site-packages, add dir to your sys.path file.

Upvotes: 1

Related Questions