Transport coding error when installing with pip

I get an unexpected argument: the encoding keyword in parse () when trying to install any python package via pip.

I get this problem since I installed shadoworflow for python 3.6, which probably led to some problem with html5lib and setuptools. Reinstall html5lib1.0b10 using the tar.gz file (admin installation), but the problem still remains. Please, help!

pip install spacy
Collecting spacy
Exception:
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\commands\install.py", line 335, in run
    wb.build(autobuilding=True)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_set.py", line 554, in _prepare_file
    require_hashes
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_install.py", line 278, in populate_link
    self.link = finder.find_requirement(self, upgrade)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 465, in find_requirement
    all_candidates = self.find_all_candidates(req.name)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 423, in find_all_candidates
    for page in self._get_pages(url_locations, project_name):
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 568, in _get_pages
    page = self._get_page(location)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 683, in _get_page
    return HTMLPage.get_page(link, session=self.session)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 811, in get_page
    inst = cls(resp.content, resp.url, resp.headers)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 731, in __init__
    namespaceHTMLElements=False,
TypeError: parse() got an unexpected keyword argument 'transport_encoding'
+4
source share
3 answers

The problem was really with html5lib and setuptools, I reinstalled html5lib using

conda install -c anaconda html5lib

, : " " conda, conda-env, html5lib. . !

+7

tensorflow 1.3.0.

html5lib.

conda uninstall html5lib --force
conda install html5lib

pip install --upgrade tensorflow. pip install --upgrade tensorflow-gpu.

+3

Thanks Nemish, installing html5lib resolved the pip installation issue. But tensor flow and several other packages were downgraded in the process. Upgrading the tensor flow to 1.3 from pip will again result in an incorrect installation of pip install.

0
source

Source: https://habr.com/ru/post/1686765/


All Articles