I was attempting to install Django and pymc yesterday. After running into a lot of problems I decided to just re-install Python 2.7. I've done that but am now having problems import almost anything. I get a bunch of lines, the last of which are:
File "c:\python27\lib\httplib.py", line 71, in <module>
import socket
File "c:\python27\lib\socket.py", line 47, in <module>
import _socket
ImportError: DLL load failed: The specified procedure could not be found.
Whether I run python in the command prompt (which works) and try to do import pip
, or type outside of the shell python get-pip.py
I get those same last lines.
I should state for the record that I have two versions of python on my machine, one being 2.7, and the other being I THINK 2.6 located in a canopy folder, but that doesn't work either, giving an error message of `ImportError: No module named os". I have my PATH environment variable leading with "c:\python27;c:\python27\scripts".
I've re-installed python a couple times now, and have tried the repair option as well, but to no avail. Anyone have any ideas?
EDIT: It seems that when I uninstalled Python, I neglected to delete the C:\Python27 folder. I uninstalled again, deleted the folder, then reinstalled and it works now. Thanks for the help.