دنبال کننده ها

۱۳۹۶ مهر ۸, شنبه

python 3.x - Tensorflow breaks pip on anaconda, windows os

[ad_1]



Last version of anaconda, windows 10, python 3.6.
Installing tensorflow seems to break pip.



>conda create -n py6 python=3.6
>activate py6
>conda install tensorflow
>pip install tweepy
Collecting tweepy
Exception:
Traceback (most recent call last):
File "C:ProgramsAnaconda3envspy6libsite-packagespipbasecommand.py", line 215, in main
status = self.run(options, args)
File "C:ProgramsAnaconda3envspy6libsite-packagespipcommandsinstall.py", line 335, in run
wb.build(autobuilding=True)
File "C:ProgramsAnaconda3envspy6libsite-packagespipwheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "C:ProgramsAnaconda3envspy6libsite-packagespipreqreq_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "C:ProgramsAnaconda3envspy6libsite-packagespipreqreq_set.py", line 554, in _prepare_file
require_hashes
File "C:ProgramsAnaconda3envspy6libsite-packagespipreqreq_install.py", line 278, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "C:ProgramsAnaconda3envspy6libsite-packagespipindex.py", line 465, in find_requirement
all_candidates = self.find_all_candidates(req.name)
File "C:ProgramsAnaconda3envspy6libsite-packagespipindex.py", line 423, in find_all_candidates
for page in self._get_pages(url_locations, project_name):
File "C:ProgramsAnaconda3envspy6libsite-packagespipindex.py", line 568, in _get_pages
page = self._get_page(location)
File "C:ProgramsAnaconda3envspy6libsite-packagespipindex.py", line 683, in _get_page
return HTMLPage.get_page(link, session=self.session)
File "C:ProgramsAnaconda3envspy6libsite-packagespipindex.py", line 811, in get_page
inst = cls(resp.content, resp.url, resp.headers)
File "C:ProgramsAnaconda3envspy6libsite-packagespipindex.py", line 731, in __init__
namespaceHTMLElements=False,
TypeError: parse() got an unexpected keyword argument 'transport_encoding'


Use of tweepy is just an example, pip cannot install any package.



The same happens when installing tensorflow using pip, and when using a python 3.5 virtual environment.



Probably this is due to some package update gone wrong, and it will be fixed in the next update.
Meanwhile, any fix or any careful selection of working version numbers is welcome.




[ad_2]

لینک منبع