Noob question here on Python using pip. I've installed pip using setuptools on a Win7 32-bit machine. I am not using virtualenv.
Now trying to install enum34 for use with dbf; I need enum34 as I have to work in Python 2.7 for use with ArcGIS 10.2. In PowerShell, I get the following returned no matter what command I try to use with pip, including the command 'list'. I've also tried with the Windows basic Command Prompt and got the same results.
Did pip not install correctly? Is there some other error?
Please let me know if I've included enough information.
PS C:\python27\arcgis10.2\scripts> .\pip install enum34
Traceback (most recent call last):
File "C:\python27\arcgis10.2\scripts\pip-script.PY", line 9, in <module>
1oad_entry_point('pip==l.5.6', 'console_scripts', 'pip')()
File "build\bdist.win32\egg\pkg_resources.py", line 351, in load_entry_point
Fi1e "build\bdist.win32\egg\pkg_resources.py", line 2363: in load_entry_point
File "build\bdist.win32\egg\pkg_resources.py", line 2088, in load
)
File "C:\Python27\ArcGIS10.2\lib\site-packages\pip\__init__.py", line 10, in <module>
from pip.util import get_installed_distributions, get_prog
....etc.
-
1As the message says the most recent problem is last so please post the whole message!Steve Barnes– Steve Barnes2014年08月01日 18:17:29 +00:00Commented Aug 1, 2014 at 18:17
2 Answers 2
Download get-pip.py and run it as Administrator. Pip should then be on your path, so you can just use pip install enum34 instead of .\pip install enum34. If that doesn't work, tell us the error message you get.
3 Comments
My goto solution for python libraries on windows is
http://www.lfd.uci.edu/~gohlke/pythonlibs/
They have prebuilt binary installers for tons of projects. enum34 is available.