Reputation: 2588
My guess is I am missing something very basic and obvious which some one can point out to me.
The below screen capture of a short command-line session shows the following:
I can see the pysal
directory exists in the sys.path
yet I get an ImportError when I try to import pysal
?
Upvotes: 1
Views: 176
Reputation: 798576
Python imports packages and modules within the entries in sys.path
, not the entries themselves. This means that either C:\Users\Max\Documents\pysal\pysal.py
or C:\Users\Max\Documents\pysal\pysal\__init__.py
would have to exist in order to be imported.
Upvotes: 2