Ubuntu16.04 pip3 install 报错 working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu16.04 pip3 install 报错 working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1. 問題現象
Exception:
Traceback (most recent call last):File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 209, in mainstatus = self.run(options, args)File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 317, in runrequirement_set.prepare_files(finder)File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 360, in prepare_filesignore_dependencies=self.ignore_dependencies))File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 448, in _prepare_filereq_to_install, finder)File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 387, in _check_skip_installedreq_to_install.check_if_exists()File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 997, in check_if_existsself.satisfied_by = pkg_resources.get_distribution(self.req)File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 535, in get_distributiondist = get_provider(dist)File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 415, in get_providerreturn working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
IndexError: list index out of range
2. 解決方法
wget https://bootstrap.pypa.io/pip/3.5/get-pip.py
sudo python3 get-pip.py
sudo pip3 install grpcio==1.28.1 -i https://pypi.douban.com/simple/
sudo pip3 install grpcio_tools==1.28.1 -i https://pypi.douban.com/simple/
總結
以上是生活随笔為你收集整理的Ubuntu16.04 pip3 install 报错 working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2022-2028年中国有机硅室温胶行业
- 下一篇: 2022-2028年中国LCD光刻胶行业