错误:“egg_base”选项错误:“src”不存在或不是目录

新手上路,请多包涵

我在Pycharm CE Ubuntu 18.04 中尝试安装Python 打包工具出现此错误。

执行命令: /tmp/tmpl3kyfibgpycharm-management/pip-10.0.1/setup.py install

发生错误: error: error in 'egg_base' option: 'src' does not exist or is not a directory

命令输出:

 running install
running bdist_egg
error: error in 'egg_base' option: 'src' does not exist or is not a directory

我也尝试过 pip install src 但这也不起作用。

原文由 qtwolf 发布,翻译遵循 CC BY-SA 4.0 许可协议

阅读 1.9k
2 个回答

对于 python 3,你必须使用安装它

sudo apt-get install python3-pip

它适用于 python 2.7

sudo apt-get install python-pip

原文由 Abhishek 发布,翻译遵循 CC BY-SA 4.0 许可协议

选择Project Interpreter的路由时,最好选择路由 '/usr/bin/python3' ,而不是 '/usr/bin/python3.6'

原文由 carroTsai 发布,翻译遵循 CC BY-SA 4.0 许可协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题