Friday 15 May 2015

python - Pip broken after installing requests[security] -


install request after running [security] Error address by running any PIP command I have tried to remove and re-install Python-P.P. along with Python-Pip. If anyone has advice or ran into this problem? I can not upgrade Python or Debian and want to do PP again.

Debian 6.0.10
Python 2.6.6
Dragon-PP 1.5.6

  $ pip --version Traceback (Most Recent Call End ): The file "/ usr / local / bin / pip", line 9, & lt; Module & gt; Load_entry_point ('pip == 1.5.6', 'console_scripts', 'pip') () file "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 305, load_entry_point return get_distribution (dist) .load_entry_point (group, name) file "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2244, load_entry_point return ep.load () file "/usr/lib/python2.6/ Dist- Packages / pkg_resources.py ", line 1954, Load Entry = __import __ (self.module_name, globals (), globals (), ['__name__']) file" /usr/local/lib/python2.6/ Dist-package / PIP-1.5.6-PA 2.6.EGP / PP / __ init__.py ", line 11, in & lt; Module & gt; PIP.VCS Import from GIT, Merge, Subversion, Market # Noaca File "/usr/local/lib/python2.6/dist-packages/pip-1.5.6-py2.6.egg/pip/vcs/mercurial.py ", Line 9, & lt; Module & gt; Pip.download Import path_to_url file from "/usr/local/lib/python2.6/dist-packages/pip-1.5.6-py2.6.egg/pip/download.py", line 22, & lt; Module & gt; Pip._vendor import requests, six files "/usr/local/lib/python2.6/dist-packages/pip-1.5.6-py2.6.egg/pip/_vendor/requests/__init__.py", line 53 , & Lt; Module & gt; To Packages.urllib3.contrib Import pyopenssl file "/usr/local/lib/python2.6/dist-packages/pip-1.5.6-py2.6.egg/pip/_vendor/requests/packages/urllib3/contrib/ Pyopenssl Py ", line 49, & lt; Module & gt; From ndg.httpsclient.ssl_peer_verification import SUBJ_ALT_NAME_SUPPORT file "/usr/local/lib/python2.6/dist-packages/ndg/httpsclient/ssl_peer_verification.py", in line 14, & lt; Module & gt; From ndg.httpsclient.subj_alt_name Import SubjectAltName file "/usr/local/lib/python2.6/dist-packages/ndg/httpsclient/subj_alt_name.py", line 102, & lt; Module & gt; Class alias name (univ. Suvens): Named type in the file named "/usr/local/lib/python2.6/dist-packages/ndg/httpsclient/subj_alt_name.py", line 105, .name type ('value', univ 'Any' is not a feature in the 'module' object  

sudo apt-get autoremove . Of course I also uninstall standard pip ndg-httpsclient Tried without any luck before.

In, I had to go to Python program directory and it had to be forcibly removed.

  $ cd usr / local / lib / python2.7 / dist-packages $ sudo rm - rf ndg_httpsclient-0.3 3-py2.7.egg-info $ sudo rm -rf ndg_httpsclient-0.3.3-py2.7-nspkg.pth $ sudo rm -rf ndg  

No comments:

Post a Comment