setup.py Not Found When Trying To Install YouCompleteMe

1.9k views Asked by At

When i try to run:

python3 install.py --all

For a while it loads things but then i get:

/usr/bin/python3: can't open file 'setup.py': [Errno 2] No such file or directory
Failed to build watchdog module.

My Install is a fresh minimal install of Ubuntu 20.04, so far i've tried:

sudo apt install build-essential
sudo apt install python3-dev
pip3 install setuptools
pip3 install --upgrade setuptools

I also saw, that i should run this, from where the "setup.py" file is but i cannot find that also

Any help is much appreciated!

1

There are 1 answers

4
doopNudles On

Did you actually download YouCompleteMe first? You run the python3 install.py command from within the directory you downloaded it to. Notice the instructions here. See how the commands go:

cd ~/.vim/bundle/YouCompleteMe
python3 install.py --all

The first cd command goes to the directory that it assumes you downloaded the plugin to.