vcgencmd icon indicating copy to clipboard operation
vcgencmd copied to clipboard

ERROR: File "setup.py" not found.

Open bpsib opened this issue 5 years ago • 8 comments

I have followed all the instructions on installing this but get ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /home/ubuntu when I try running sudo pip3 install -e .. Same when trying to install locally.

bpsib avatar Jun 03 '20 21:06 bpsib

Does python3 setup.py install --user work?

nicmcd avatar Jun 03 '20 21:06 nicmcd

Does python3 setup.py install --user work?

No. I get Traceback (most recent call last): File "setup.py", line 2, in <module> from setuptools import setup, find_packages ModuleNotFoundError: No module named 'setuptools' But I have already done sudo pip3 install setuptools
and get Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (45.2.0).

bpsib avatar Jun 03 '20 22:06 bpsib

Something is wrong with your python3 environment. Try opening an interaction python environment using python3 at the command line. Then type import setuptools to see if that works. If it does not work then setuptools is not installed for python3.

Be careful about python vs python3.

nicmcd avatar Jun 03 '20 22:06 nicmcd

Also you might be running into a sudo user vs regular user issue. Sometimes when you install with sudo only root is allowed to use those packages. Try doing everything without sudo and with --user.

nicmcd avatar Jun 03 '20 22:06 nicmcd

I still can't get it to work.

ubuntu@ubuntu:~$ sudo pip3 install setuptools --force-reinstall
Collecting setuptools
  Using cached setuptools-47.1.1-py3-none-any.whl (583 kB)
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 47.1.1
    Uninstalling setuptools-47.1.1:
      Successfully uninstalled setuptools-47.1.1
Successfully installed setuptools-47.1.1
ubuntu@ubuntu:~$ sudo pip3 install -e .
ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /home/ubuntu

bpsib avatar Jun 03 '20 22:06 bpsib

Hi,

I am having the same issue with the same error on the current build of Kali Linux running as root on a Raspberry Pi 4B (I tried both global and local installs and got the same error). It displays...

Successfully installed setuptools-47.3.1

and then...

ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /tmp/userland

Mark

floridamark avatar Jun 20 '20 23:06 floridamark

Have you tried python3 setup.py install --user?

nicmcd avatar Jun 27 '20 23:06 nicmcd

I also have tried all of the above (Debian Buster not Rasbian) and get the setup.py error.

codeclinic avatar Dec 29 '20 15:12 codeclinic