python - Pip install from requirements file is failing, but installing one by one works -
python - Pip install from requirements file is failing, but installing one by one works -
i trying install bunch of python dependencies using requirements.txt file next command:
pip install -r requirements.txt
the requirements.txt file has next packages:
pep8 selenium paramiko soappy nose wmi mock python-keystoneclient python-novaclient python-cinderclient python-swiftclient python-glanceclient python-heatclient python-neutronclient
but when running pip install command getting error:
downloading/unpacking prettytable>=0.7,<0.8 (from python-keystoneclient->-r requ irements.txt (line 9)) cleaning up... exception: traceback (most recent phone call last): file "c:\python27\virtualenvs\test\lib\site-packages\pip\basecommand.py", line 122, in main status = self.run(options, args) file "c:\python27\virtualenvs\test\lib\site-packages\pip\commands\install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundl e=self.bundle) file "c:\python27\virtualenvs\test\lib\site-packages\pip\req.py", line 1197, n prepare_files do_download, file "c:\python27\virtualenvs\test\lib\site-packages\pip\req.py", line 1375, n unpack_url self.session, file "c:\python27\virtualenvs\test\lib\site-packages\pip\download.py", line 54 6, in unpack_http_url resp = session.get(target_url, stream=true) file "c:\python27\virtualenvs\test\lib\site-packages\pip\_vendor\requests\sess ions.py", line 395, in homecoming self.request('get', url, **kwargs) file "c:\python27\virtualenvs\test\lib\site-packages\pip\download.py", line 23 7, in request homecoming super(pipsession, self).request(method, url, *args, **kwargs) file "c:\python27\virtualenvs\test\lib\site-packages\pip\_vendor\requests\sess ions.py", line 383, in request resp = self.send(prep, **send_kwargs) file "c:\python27\virtualenvs\test\lib\site-packages\pip\_vendor\requests\sess ions.py", line 486, in send r = adapter.send(request, **kwargs) file "c:\python27\virtualenvs\test\lib\site-packages\pip\_vendor\requests\adap ters.py", line 381, in send raise proxyerror(e) proxyerror: cannot connect proxy. socket error: [errno 10054] existing con nection forcibly closed remote host. storing debug log failure in c:\users\cjmarti2\pip\pip.log
but reason if install packages using pip install <package>
installed correctly.
a couple of things consider; 1) since in company's intranet setting proxy using set https_proxy=https://company-proxy.com:port
. 2) installing exact same packages using requirements.txt in linux machine works fine. ideas?
update: using python 2.7 64 bits. uninstalled , installed 32 bits, , no longer had problem. looks python version problem, 64 bits 1 reason cause problems.
python pip packages
Comments
Post a Comment