Skip to content

Ошибка при установке пакетов через pip3 #1

@ABiatov

Description

@ABiatov

OS Xubuntu 18.04 64bit
в системе установлен python2, как python по умолчанию и jupyter notebook для него.

Запустил терминал из каталога, куда расаковал архив python-patterns

При первой попытке запустить python3 -m venv env вернуло сообщение с просьбой установить пакет python3-venv.

$ python3 -m venv env
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt-get install python3-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

Установил этот пакет

sudo apt-get install python3-venv

В каталоге распаковки выполнил команду
python3 -m venv env

Потом выполнил команду
pip3 install -r requirements.txt
от простого пользователя, без sudo .

Пошел процесс установки.
Многие прокеты при установке возвращали сообщения: Cache entry deserialization failed, entry ignored
Пример ниже.

Downloading https://files.pythonhosted.org/packages/84/71/c8ca4f5bb1e08401b916c68003acf0a0655df935d74d93bf3f3364b310e0/backcall-0.1.0.tar.gz
Collecting bleach==3.1.0 (from -r requirements.txt (line 5))
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/ab/05/27e1466475e816d3001efb6e0a85a819be17411420494a1e602c36f8299d/bleach-3.1.0-py2.py3-none-any.whl (157kB)
    100% |████████████████████████████████| 163kB 466kB/s 
Collecting branca==0.3.1 (from -r requirements.txt (line 6))

Процесс установки оборвался на следующей ошибке.

 Downloading https://files.pythonhosted.org/packages/72/4c/5f81e7264b0a7a8bd570810f48cd346ba36faedbd2ba255c873ad556de76/scipy-1.3.0-cp36-cp36m-manylinux1_x86_64.whl (25.2MB)
    72% |███████████████████████         | 18.2MB 22kB/s eta 0:05:06Exception:
Traceback (most recent call last):
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/share/python-wheels/urllib3-1.22-py2.py3-none-any.whl/urllib3/response.py", line 302, in _error_catcher
    yield
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/share/python-wheels/urllib3-1.22-py2.py3-none-any.whl/urllib3/response.py", line 384, in read
    data = self._fp.read(amt)
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/filewrapper.py", line 60, in read
    data = self.__fp.read(amt)
  File "/usr/lib/python3.6/http/client.py", line 449, in read
    n = self.readinto(b)
  File "/usr/lib/python3.6/http/client.py", line 493, in readinto
    n = self.fp.readinto(b)
  File "/usr/lib/python3.6/socket.py", line 586, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.6/ssl.py", line 1012, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib/python3.6/ssl.py", line 874, in read
    return self._sslobj.read(len, buffer)
  File "/usr/lib/python3.6/ssl.py", line 631, in read
    v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/lib/python3.6/site-packages/pip/commands/install.py", line 353, in run
    wb.build(autobuilding=True)
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/lib/python3.6/site-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/lib/python3.6/site-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/lib/python3.6/site-packages/pip/req/req_set.py", line 620, in _prepare_file
    session=self.session, hashes=hashes)
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/lib/python3.6/site-packages/pip/download.py", line 821, in unpack_url
    hashes=hashes
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/lib/python3.6/site-packages/pip/download.py", line 659, in unpack_http_url
    hashes)
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/lib/python3.6/site-packages/pip/download.py", line 882, in _download_http_url
    _download_url(resp, link, content_file, hashes)
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/lib/python3.6/site-packages/pip/download.py", line 603, in _download_url
    hashes.check_against_chunks(downloaded_chunks)
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/lib/python3.6/site-packages/pip/utils/hashes.py", line 46, in check_against_chunks
    for chunk in chunks:
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/lib/python3.6/site-packages/pip/download.py", line 571, in written_chunks
    for chunk in chunks:
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/lib/python3.6/site-packages/pip/utils/ui.py", line 139, in iter
    for x in it:
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/lib/python3.6/site-packages/pip/download.py", line 560, in resp_read
    decode_content=False):
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/share/python-wheels/urllib3-1.22-py2.py3-none-any.whl/urllib3/response.py", line 436, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/share/python-wheels/urllib3-1.22-py2.py3-none-any.whl/urllib3/response.py", line 401, in read
    raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
  File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/narwhale/Documents/GIS-PZF-2019/Masterklasses/MK_Kozyr_WD/python-patterns/env/share/python-wheels/urllib3-1.22-py2.py3-none-any.whl/urllib3/response.py", line 307, in _error_catcher
    raise ReadTimeoutError(self._pool, None, 'Read timed out.')
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions