python - Unable to install nose testing framework -


i attempted installing nose using pip installation terminated following error message:

    downloading/unpacking nose   downloading nose-1.3.0.tar.gz (404kb): 286kb downloaded exception: traceback (most recent call last):   file "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 104, in main     status = self.run(options, args)   file "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 245, in run     requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)   file "/usr/lib/python2.7/dist-packages/pip/req.py", line 985, in prepare_files     self.unpack_url(url, location, self.is_download)   file "/usr/lib/python2.7/dist-packages/pip/req.py", line 1109, in unpack_url     retval = unpack_http_url(link, location, self.download_cache, self.download_dir)   file "/usr/lib/python2.7/dist-packages/pip/download.py", line 451, in unpack_http_url     download_hash = _download_url(resp, link, temp_location)   file "/usr/lib/python2.7/dist-packages/pip/download.py", line 368, in _download_url     chunk = resp.read(4096)   file "/usr/lib/python2.7/socket.py", line 380, in read     data = self._sock.recv(left)   file "/usr/lib/python2.7/httplib.py", line 561, in read     s = self.fp.read(amt)   file "/usr/lib/python2.7/socket.py", line 380, in read     data = self._sock.recv(left) timeout: timed out 

how fix this?

pypl has been little bit slow today. maybe try --use-mirrors see if helps alleviate situation.

pip

if you’re using recent pip (0.8.1 or later) use —use-mirrors flag:

pip install --use-mirrors $package

you can set pip_use_mirrors environment variable.

this’ll automatically query list of mirrors , keep trying until 1 responds. can take bit of time when pypi’s down waits pypi time out, it’ll work.

for older versions of pip, or if want force use of particular mirror, use:

pip install -i http://d.pypi.python.org/simple $package

if want instruct pip use mirror — if you’ll doing lot of installation, or if you’re using pip part of bigger automation tool — put:

[global] index-url = http://d.pypi.python.org/simple

into ~/.pip/pip.conf.

(you can see timed out in download - top , bottom lines)

downloading nose-1.3.0.tar.gz (404kb): 286kb downloaded

timeout: timedout


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -