2017-10-18 15 views
0

私はAnaconda 5.0,Windows 10です。Tensorflowをインストールした後のpipインストールに関する問題

Tensorflowpip install tensorflowをAnaconda Promptにインストールしました。

インストールに成功しました。 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

また、ロミオ、here、によって提供される解決策は、私のために動作しません。

conda install --force html5lib

:実行することによって解決

+0

可能な重複は[ピップは例外TypeError新しいパッケージをインストールする](https://stackoverflow.com/questions/46499808/pip-throws-typeerror-parse-got-an-unexpected-keyword-argument-transport-enco) – Goyo

答えて

1

パース()しようとすると、予期しないキーワード引数 '輸送の\ _encoding' を得た:(クレジット:マイクLanzetta)の

関連する問題