python - Updating pip not working in ubuntu 14.04 -
i unable update pip in ubuntu.i've ubuntu 14.04 64-bit,python 3.6 , anaconda3 installed in machine. i've used following command update pip. sudo apt-get update i've tried following solutions in etc/hosts added following 91.189.88.46 us.archive.ubuntu.com 91.189.88.46 security.ubuntu.com 91.189.88.46 *.ubuntu.com
but still getting error err http://extras.ubuntu.com trusty inrelease err http://extras.ubuntu.com trusty release.gpg not resolve 'extras.ubuntu.com' err http://archive.ubuntu.com trusty inrelease err http://archive.ubuntu.com trusty-updates inrelease err http://archive.ubuntu.com trusty-backports inrelease err http://archive.ubuntu.com trusty-security inrelease err http://archive.ubuntu.com trusty release.gpg not resolve 'archive.ubuntu.com' w: failed fetch http://archive.ubuntu.com/ubuntu/dists/trusty/inrelease w: failed fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/inrelease w: failed fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/inrelease w: failed fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/inrelease w: failed fetch http://extras.ubuntu.com/ubuntu/dists/trusty/inrelease w: failed fetch http://extras.ubuntu.com/ubuntu/dists/trusty/release.gpg not resolve 'extras.ubuntu.com' w: failed fetch http://archive.ubuntu.com/ubuntu/dists/trusty/release.gpg not resolve 'archive.ubuntu.com' w: failed fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/release.gpg not resolve 'archive.ubuntu.com' w: failed fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/release.gpg not resolve 'archive.ubuntu.com' w: failed fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/release.gpg not resolve 'archive.ubuntu.com' w: index files failed download. have been ignored, or old ones used instead.
tried running command pip install --upgrade pip throws error.
exception: traceback (most recent call last): file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/commands/install.py", line 335, in run wb.build(autobuilding=true) file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/wheel.py", line 749, in build self.requirement_set.prepare_files(self.finder) file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/req/req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/req/req_set.py", line 487, in _prepare_file req_to_install, finder) file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/req/req_set.py", line 428, in _check_skip_installed req_to_install, upgrade_allowed) file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/index.py", line 465, in find_requirement all_candidates = self.find_all_candidates(req.name) file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/index.py", line 423, in find_all_candidates page in self._get_pages(url_locations, project_name): file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/index.py", line 568, in _get_pages page = self._get_page(location) file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/index.py", line 683, in _get_page return htmlpage.get_page(link, session=self.session) file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/index.py", line 792, in get_page "cache-control": "max-age=600", file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 488, in return self.request('get', url, **kwargs) file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/download.py", line 386, in request return super(pipsession, self).request(method, url, *args, **kwargs) file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 475, in request resp = self.send(prep, **send_kwargs) file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 596, in send r = adapter.send(request, **kwargs) file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/_vendor/cachecontrol/adapter.py", line 47, in send resp = super(cachecontroladapter, self).send(request, **kw) file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/_vendor/requests/adapters.py", line 390, in send conn = self.get_connection(request.url, proxies) file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/_vendor/requests/adapters.py", line 290, in get_connection proxy_manager = self.proxy_manager_for(proxy) file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/_vendor/requests/adapters.py", line 184, in proxy_manager_for **proxy_kwargs file "/home/tcs/anaconda3/lib/python3.6/site-packages/pip/_vendor/requests/adapters.py", line 43, in socksproxymanager raise invalidschema("missing dependencies socks support.") pip._vendor.requests.exceptions.invalidschema: missing dependencies socks support.
Comments
Post a Comment