Error importing module from package, package itself imported but empty, pip says package installed and up-to-date
Question: I have anaconda python 2.7 and installed the shapely package. Importing the
whole package does not give errors, but then when trying to access modules
that should be loaded, they dont seem to be there. Also importing the specific
module throws an error.

This is the error I get when importing the module

    
    
    import shapely.geometry
    
    WindowsError: [Error 126] The specified module could not be found
    

Though importing the whole package seems to work

    
    
    import shapely
    dir(shapely)
    
    ['__builtins__',
     '__doc__',
     '__file__',
     '__name__',
     '__package__',
     '__path__',
     '__version__',
     'ctypes_declarations',
     'ftools']
    

So the modules are not there even though shapely seems to be there.

pip has it in its list

    
    
    pip list
    
    Shapely (1.5.1)
    

Then when I try to install with pip anyways:

    
    
    pip install shapely
    Requirements already satisfied: shapely in d:\...
    

Trying to upgrade with pip:

    
    
    pip install shapely --upgrade
    Requirements already up-to-date: shapely in d:\...
    

Forcing reinstall with pip as per
[this](http://stackoverflow.com/questions/19548957/can-i-force-pip-to-
reinstall-the-current-version) answer did not change the errors.

Deinstalling with pip and installing it again gives a warning:

    
    
    warning the c extension could not be compiled speedups are not enabled
    

Im not sure whats wrong here and how I can fix it, any hints to help me in the
right direction would be super, thanks!


Answer: wwii `s comment solved this, using a windows installer did work. I got it from
[here](https://pypi.python.org/pypi/Shapely#downloads). Probably properly
installing and configuring a compiler would also work.

