【问题标题】:Issues with pip install after installing Tensorflow安装 Tensorflow 后 pip install 的问题
【发布时间】:2017-10-18 11:09:35
【问题描述】:

我有Anaconda 5.0Windows 10

我已经在 Anaconda Prompt 中安装了 Tensorflowpip install tensorflow

安装成功。 website 上建议的测试按预期工作。

但现在我无法使用pip install 安装任何其他软件包。例如当我跑步时:

pip install memory-profiler我明白了:

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

我该如何补救?


运行后问题依旧:

conda upgrade pip

另外,Romeo 提供的解决方案here 对我不起作用。

【问题讨论】:

标签: python tensorflow anaconda


【解决方案1】:

通过运行解决:

conda install --force html5lib

(来源:迈克·兰泽塔)

【讨论】:

    猜你喜欢
    • 2020-10-03
    • 1970-01-01
    • 2022-06-30
    • 2017-07-17
    • 2021-03-21
    • 1970-01-01
    • 1970-01-01
    • 2015-06-15
    • 2022-01-05
    相关资源
    最近更新 更多