美文网首页
Ubuntu 启动 Terminal 提示警告

Ubuntu 启动 Terminal 提示警告

作者: LeviXAO | 来源:发表于2018-09-27 20:47 被阅读0次

    Traceback (most recent call last):
    File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "main", fname, loader, pkg_name)
    File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
    File "/home/achilles/.local/lib/python2.7/site-packages/virtualenvwrapper/hook_loader.py", line 16, in <module>
    from stevedore import ExtensionManager
    File "/home/achilles/.local/lib/python2.7/site-packages/stevedore/init.py", line 11, in <module>
    from .extension import ExtensionManager
    File "/home/achilles/.local/lib/python2.7/site-packages/stevedore/extension.py", line 17, in <module>
    import pkg_resources
    ImportError: No module named pkg_resources
    virtualenvwrapper.sh: There was a problem running the initialization hooks.
    If Python could not import the module virtualenvwrapper.hook_loader,
    check that virtualenvwrapper has been installed for
    VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is
    set properly.

    依次执行以下代码即可:
    sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
    sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150
    

    相关文章

      网友评论

          本文标题:Ubuntu 启动 Terminal 提示警告

          本文链接:https://www.haomeiwen.com/subject/jreyoftx.html