使用Anaconda3安装Theano的问题(Python版本3.6)

时间:2018-03-01 10:26:25

标签: python deep-learning anaconda theano

我已按照说明中的说明尝试安装theano 在Anaconda提示符下键入pip install theano 我遇到了以下问题。

它给了我这些错误:

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

我该怎么办?

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题。在我的情况下,更新pip工作。

conda update pip