I have upgraded from 8.1.2 to 9.0.1, and has the following import error on install. But the same upgrade work on our ArcGIS10.3 python which is version 2.7.8.
using the following:
SET F_PIP=pip-9.0.1.tar.gz
set pythonpath="C:\Program Files (x86)\Python27\ArcGIS10.4\python.exe"
%pythonpath% -m pip install -U pip tarball\%F_PIP%
Processing m:\production\applicationsupport\utility\python\tarball\pip-9.0.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "
File "c:\users\adm-ru~1\appdata\local\temp\pip-eczcfe-build\setup.py", line 92, in
cmdclass={'test': PyTest},
File "C:\Program Files (x86)\Python27\ArcGIS10.4\lib\distutils\core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "C:\Program Files (x86)\Python27\ArcGIS10.4\lib\site-packages\setuptools\dist.py", line 272, in __init__
_Distribution.__init__(self,attrs)
File "C:\Program Files (x86)\Python27\ArcGIS10.4\lib\distutils\dist.py", line 287, in __init__
self.finalize_options()
File "C:\Program Files (x86)\Python27\ArcGIS10.4\lib\site-packages\setuptools\dist.py", line 327, in finalize_options
ep.load()(self, ep.name, value)
File "C:\Program Files (x86)\Python27\ArcGIS10.4\lib\site-packages\pkg_resources__init__.py", line 2345, in load
return self.resolve()
File "C:\Program Files (x86)\Python27\ArcGIS10.4\lib\site-packages\pkg_resources__init__.py", line 2355, in resolve
raise ImportError(str(exc))
ImportError: 'module' object has no attribute 'check_specifier'
but the whl works
Tested Ignoring indexes: https://pypi.python.org/simple
Processing m:\production\applicationsupport\utility\python\tarball\pip-9.0.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 8.1.2
Uninstalling pip-8.1.2:
Successfully uninstalled pip-8.1.2
Successfully installed pip-9.0.1
FWIW, I ran into this same error after upgrading to 9.0.1 with setuptools 30.2.0 and python 2.7.6. I version-locked my system to use pip 9.0.1 and setuptools 30.1.0 to fix the problem. Not sure exactly what the problem was, but pretty sure it was setuptools and not pip (downgrading to pip 8.1.2 had no effect)
I also had to downgrade away from setuptools 30.2.0 to fix the issue
I also had to downgrade. 30.1.0 worked for me. I do not see any obvious commit that might've cause it.
This appears to be an issue with setuptools and not with pip. If you're still having this issue I suggest reopening there.
upgrade setuptools from 36.2.7 to 39.0.1 can also fix the issue
Upgrading setuptools worked:
sudo pip install setuptools --upgrade
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Upgrading setuptools worked:
sudo pip install setuptools --upgrade