看板 Python 關於我們 聯絡資訊
請問一下, 今天把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://www.ptt.cc/bbs/Python/M.1508398377.A.167.html
supershi: 之前遇到類似的問題 用conda更新pip跟html5lib後就好了 10/20 08:35
dppman: 試過了更新上面提到的套件還是無解 10/20 15:22
sss22213: 以系統管理員身份 更新上面兩個看看 10/22 23:40
dppman: 試過用admin執行conda update --all, 還是一樣... 10/24 10:31
roccqqck: conda下使用pip務必create env 很容易衝突掛掉 10/09 14:38