原文地址:https://blog.csdn.net/duanshao/article/details/78514035
1、安装moviepy过程中,在cmd下,使用pip命令pip install moviepy安装遇到如下问题:
1. Exception:
2. Traceback (most recent call last):
3. File "C:\ProgramData\Anaconda3\lib\site-packages\pip\basecommand.py", line 215, in main
4. status = self.run(options, args)
5. File "C:\ProgramData\Anaconda3\lib\site-packages\pip\commands\install.py", line 335, in run
6. wb.build(autobuilding=True)
7. File "C:\ProgramData\Anaconda3\lib\site-packages\pip\wheel.py", line 749, in build
8. self.requirement_set.prepare_files(self.finder)
9. File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
10. ignore_dependencies=self.ignore_dependencies))
11. File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_set.py", line 554, in _prepare_file
12. require_hashes
13. File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_install.py", line 278, in populate_link
14. self.link = finder.find_requirement(self, upgrade)
15. File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 465, in find_requirement
16. all_candidates = self.find_all_candidates(req.name)
17. File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 423, in find_all_candidates
18. for page in self._get_pages(url_locations, project_name):
19. File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 568, in _get_pages
20. page = self._get_page(location)
21. File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 683, in _get_page
22. return HTMLPage.get_page(link, session=self.session)
23. File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 811, in get_page
24. inst = cls(resp.content, resp.url, resp.headers)
25. File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 731, in __init__
26. namespaceHTMLElements=False,
TypeError: parse() got an unexpected keyword argument 'transport_encoding'
原因:anaconda3安装时缺少tqdm(使用conda list能看到)
解决办法:(cmd 输入)
$ : conda install tqdm ###安装过程中会遇到选择y/n ,输入y 回车即可.
$: pip3 install moviepy