嘗試使用pip安裝應用程序時出現以下錯誤。在Windows上通過pip安裝應用程序時遇到問題
Collecting django
Exception:
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\pip\basecommand.py", line 232, in main
status = self.run(options, args)
File "C:\Python34\lib\site-packages\pip\commands\install.py", line 339, in run
requirement_set.prepare_files(finder)
File "C:\Python34\lib\site-packages\pip\req\req_set.py", line 333, in prepare_files
upgrade=self.upgrade,
File "C:\Python34\lib\site-packages\pip\index.py", line 305, in find_requirement
page = self._get_page(main_index_url, req)
File "C:\Python34\lib\site-packages\pip\index.py", line 783, in _get_page
return HTMLPage.get_page(link, req, session=self.session)
File "C:\Python34\lib\site-packages\pip\index.py", line 872, in get_page
"Cache-Control": "max-age=600",
File "C:\Python34\lib\site-packages\pip\_vendor\requests\sessions.py", line 473, in get
return self.request('GET', url, **kwargs)
File "C:\Python34\lib\site-packages\pip\download.py", line 365, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "C:\Python34\lib\site-packages\pip\_vendor\requests\sessions.py", line 461, in request
resp = self.send(prep, **send_kwargs)
File "C:\Python34\lib\site-packages\pip\_vendor\requests\sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "C:\Python34\lib\site-packages\pip\_vendor\cachecontrol\adapter.py", line 43, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File "C:\Python34\lib\site-packages\pip\_vendor\requests\adapters.py", line 337, in send
conn = self.get_connection(request.url, proxies)
File "C:\Python34\lib\site-packages\pip\_vendor\requests\adapters.py", line 245, in get_connection
proxy_manager = self.proxy_manager_for(proxy)
File "C:\Python34\lib\site-packages\pip\_vendor\requests\adapters.py", line 155, in proxy_manager_for
**proxy_kwargs)
File "C:\Python34\lib\site-packages\pip\_vendor\requests\packages\urllib3\poolmanager.py", line 265, in proxy_from_url
return ProxyManager(proxy_url=url, **kw)
File "C:\Python34\lib\site-packages\pip\_vendor\requests\packages\urllib3\poolmanager.py", line 216, in __init__
'Not supported proxy scheme %s' % proxy.scheme
AssertionError: Not supported proxy scheme abden003
我試圖運行下面的命令,而是要在兩種情況下,同樣的錯誤(我一直在使用Python和python3試過):
pip install django
pip install django --proxy http://abden003:[email protected]:port
pip3 install django
pip3 install django --proxy http://abden003:[email protected]:port
的問題是不符合我的代理服務器,因爲我在Linux虛擬機中嘗試過,並且工作正常。這似乎是Windows版本的點的問題。
我曾嘗試以下,但它並沒有解決這個問題:
pip, proxy authentication and "Not supported proxy scheme"
它只是django,你是否嘗試點插安裝別的以及? –
是的,我已經嘗試安裝幾個軟件包,他們都給出了相同的錯誤 – abden003
這可能有一個答案你的問題:http://stackoverflow.com/questions/26109264/pip-proxy-authentication-and-not-supported-proxy -scheme –