Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

I'm trying to install Python packaging tools in Pycharm CE Ubuntu 18.04 and this error occurs.

Excuted command: /tmp/tmpl3kyfibgpycharm-management/pip-10.0.1/setup.py install

Error ocurred: error: error in 'egg_base' option: 'src' does not exist or is not a directory

Command output:

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

I also tried pip install srcand this does not work either.

like image 338
qtwolf Avatar asked Jun 08 '18 07:06

qtwolf


2 Answers

For python 3 you must install it using

sudo apt-get install python3-pip

it will work for python 2.7

sudo apt-get install python-pip

like image 72
Abhishek Avatar answered Sep 20 '22 17:09

Abhishek


When choose the route of Project Interpreter, you'd better select the route '/usr/bin/python3' instead of '/usr/bin/python3.6'.

like image 42
carroTsai Avatar answered Sep 17 '22 17:09

carroTsai