首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Python 3,Rodeo IDE,错误:未安装Pip

Python 3,Rodeo IDE,错误:未安装Pip
EN

Stack Overflow用户
提问于 2018-06-19 15:56:39
回答 1查看 142关注 0票数 0

我使用以下命令在Ubuntu 16.04.4 LTS上安装了Rodeo (如rodeo网站所列):

代码语言:javascript
复制
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 33D40BC6
sudo add-apt-repository "deb http://rodeo-deb.yhat.com/ rodeo main"

#### install rodeo and run it
sudo apt-get update
sudo apt-get -y install rodeo

我还安装了Python3(Python3.5.2)和Pip3,通过

代码语言:javascript
复制
 sudo apt-get -y install python3-pip

但是当我启动Rodeo时,Rodeo启动时出现以下错误:

代码语言:javascript
复制
There was an error running python

$python3
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 
33, in vendored
__import__(vendored_name, globals(), locals(), level=0)
ImportError: No module named 'pip._vendor.pkg_resources'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/Rodeo/resources/app/node/kernels/python/start_kernel.py", 
    line 21, in <module>
    import pip
  File "/usr/lib/python3/dist-packages/pip/__init__.py", line 13, in 
      <module>
    from pip.exceptions import InstallationError, CommandError, 
      PipError
  File "/usr/lib/python3/dist-packages/pip/exceptions.py", line 6, in 
     <module>
     from pip._vendor.six import iteritems
  File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 
     75, in <module>
     vendored("pkg_resources")
  File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 
    36, in vendored
__import__(modulename, globals(), locals(), level=0)
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in 
   _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in 
   _load_backward_compatible
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none- 
     any.whl/pkg_resources/__init__.py", line 2927, in <module>
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none- 
    any.whl/pkg_resources/__init__.py", line 2913, in _call_aside
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none- 
      any.whl/pkg_resources/__init__.py", line 2952, in 
  _initialize_master_working_set
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none- 
     any.whl/pkg_resources/__init__.py", line 956, in subscribe
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none- 
      any.whl/pkg_resources/__init__.py", line 2952, in <lambda>
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none- 
    any.whl/pkg_resources/__init__.py", line 2515, in activate
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none- 
    any.whl/pkg_resources/__init__.py", line 2097, in    
      declare_namespace
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none- 
    any.whl/pkg_resources/__init__.py", line 2047, in _handle_ns
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none- 
     any.whl/pkg_resources/__init__.py", line 2066, in 
 _rebuild_mod_path
  AttributeError: '_NamespacePath' object has no attribute 'sort'

  During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
    File 
 "/opt/Rodeo/resources/app/node/kernels/python/start_kernel.py", line 
 23, in <module>
     raise Exception('Pip is not installed')
 Exception: Pip is not installed
 Pip is not installed

我不知道为什么会出现这些错误,因为Pip3已经安装并且工作正常

EN

回答 1

Stack Overflow用户

发布于 2018-06-19 17:35:11

尝试使用pip3 install pippip install pip

它应该是可行的

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50923325

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档