I am trying to install Scrapy for Python 2.7 on Windows 8.1, and I understand that I need to install pip first. Since I have Python installed through ArcGIS 10.2, I think I need to install pip in C: \ Python27 \ ArcGIS10.2 \ lib \ site-packages. After pip is installed in this directory, I get an error code:
>>> import pip Traceback (most recent call last): File "<interactive input>", line 1, in <module> File "C:\Python27\ArcGIS10.2\lib\site-packages\pip\__init__.py", line 10, in <module> from pip.util import get_installed_distributions, get_prog File "C:\Python27\ArcGIS10.2\lib\site-packages\pip\util.py", line 18, in <module> from pip._vendor.distlib import version File "C:\Python27\ArcGIS10.2\lib\site-packages\pip\_vendor\distlib\version.py", line 14, in <module> from .compat import string_types File "C:\Python27\ArcGIS10.2\lib\site-packages\pip\_vendor\distlib\compat.py", line 38, in <module> from HTMLParser import HTMLParser File "C:\Python27\ArcGIS10.2\lib\HTMLParser.py", line 47, in <module> """, re.VERBOSE) File "C:\Python27\ArcGIS10.2\lib\re.py", line 190, in compile return _compile(pattern, flags) File "C:\Python27\ArcGIS10.2\lib\re.py", line 242, in _compile raise error, v # invalid expression error: nothing to repeat
I also installed pip in C: \ Python27 \ lib \ site-packages. However, when it is installed only in this directory, PyScripter does not recognize that it is installed. Anyone have any suggestions?
source share