1

I’m trying to set up my Raspberry Pi, and blinka is not installing, and I have been backtracking to reinstall my setuptools since I have the error where the board is not importing. And I am receiving an error:

13 permission denied ‘/usr/local/lib/python3.9/dist-packages/_distutils_hack/‘

Please I am losing my mind.

I have tried deleting the files to see if I can get a fresh restart and it then denies permission from that same file.

Raptor
  • 53,206
  • 45
  • 230
  • 366
Firestarly
  • 21
  • 2
  • 2
    what is the command you're executing? – Raptor Apr 21 '23 at 01:52
  • Are you working with the system interpreter or some virtual environment? Be careful messing with the system interpreter - there be dragons. – Brian61354270 Apr 21 '23 at 01:55
  • pip uninstall setuptools, pip install --upgrade setuptools --user python, – Firestarly Apr 21 '23 at 02:40
  • do you mean `pip install --upgrade setuptools --user` instead? why the extra `python`? – Raptor Apr 21 '23 at 06:39
  • I just tried basically anything i could find online regarding board errors, and the permission and restart the process multiple times. There was no particular reason for the extra python besides losing track of what i had and hadnt tried at that point. I’m more used to working with arduinos than i am with raspberry pi. – Firestarly Apr 21 '23 at 16:57
  • So please tell us what happens if you follow Raptors advice? Please read https://stackoverflow.com/a/42021993/18667225 and the comments below. – Markus Apr 22 '23 at 11:01
  • Error: exception: traceback (most recent call last): File “/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py”, line 171, in _merge_into_criterion if i try to pip install —user adafruit-blinka – Firestarly Apr 24 '23 at 03:26
  • If i try pip install —user setuptools i get Requirement already satisfied – Firestarly Apr 24 '23 at 03:27
  • I tried to sudo pip3 insttall rpi_ws281x adafruit-circuitpython-neopixel however i get an error while its collecting pyusb!=1.2.0,>=1.0.0 Downloading https://www.piwheels.org/simply/pyusb/pyusb-1.2.1-py3-none-any.whl with the same error as the traceback – Firestarly Apr 24 '23 at 03:40

1 Answers1

1

I ended up factory restarting the raspberry pi cause I was worried I had corrupted something at some point, and it is working fine now.

Firestarly
  • 21
  • 2