作者dppman (*^o^*)
看板Python
标题[问题] update Anaconda3後pip出现问题
时间Thu Oct 19 15:32:53 2017
请问一下,
今天把Anaconda upgrade到5.0, 结果pip要check套件版本却一直出错....
pip list --outdated --format=legacy --trusted-host pypi.python.org
OS: Windows 10 64bit
Error message:
C:\Users\jj\AppData\Local\conda\conda\envs\tensorflow13\lib\site-packages\urllib3\connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See:
https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
Exception:
Traceback (most recent call last):
File "C:\Users\jj\AppData\Local\conda\conda\envs\tensorflow13\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "C:\Users\jj\AppData\Local\conda\conda\envs\tensorflow13\lib\site-packages\pip\commands\list.py", line 157, in run
packages = self.get_outdated(packages, options)
File "C:\Users\jj\AppData\Local\conda\conda\envs\tensorflow13\lib\site-packages\pip\commands\list.py", line 168, in get_outdated
dist for dist in self.iter_packages_latest_infos(packages, options)
File "C:\Users\jj\AppData\Local\conda\conda\envs\tensorflow13\lib\site-packages\pip\commands\list.py", line 169, in <listcomp>
if dist.latest_version > dist.parsed_version
TypeError: '>' not supported between instances of 'Version' and 'SetuptoolsVersion'
请问有人知道解法吗?已经google过,找不到解法...
Thanks in advance!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 60.251.214.226
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Python/M.1508398377.A.167.html
1F:→ supershi: 之前遇到类似的问题 用conda更新pip跟html5lib後就好了 10/20 08:35
2F:→ dppman: 试过了更新上面提到的套件还是无解 10/20 15:22
3F:推 sss22213: 以系统管理员身份 更新上面两个看看 10/22 23:40
4F:→ dppman: 试过用admin执行conda update --all, 还是一样... 10/24 10:31
5F:推 roccqqck: conda下使用pip务必create env 很容易冲突挂掉 10/09 14:38