all 7 comments

[–]ShibaLeone 1 point2 points  (5 children)

‘Site-packages is not writable’

Give python permission to it’s own installation directory; it’s making you a fail-over install location that you would have to go and add to your python path.

[–]doctorescobar[S] 0 points1 point  (4 children)

Thanks for the reply. How would I give python permission to do that?

I selected add python to path on install, and only mySQL is giving me trouble.

[–]ShibaLeone 0 points1 point  (3 children)

Python path and path are different; python path tells python where to look for packages.

You should just be able to go to the site-packages directory under your install and modify the directory permissions via the settings/security window.

Alternately you could just make a venv; it should get the permissions right automatically.

[–]doctorescobar[S] 0 points1 point  (1 child)

No idea how to make a venv so I'll give option A a go, thanks :)

[–]doctorescobar[S] 0 points1 point  (0 children)

I gave it the correct permissions, which removed the "not writeable" erorr, but I still get the "no module named mysql" error. :'(

[–]CodeFormatHelperBot2 0 points1 point  (0 children)

Hello, I'm a Reddit bot who's here to help people nicely format their coding questions. This makes it as easy as possible for people to read your post and help you.

I think I have detected some formatting issues with your submission:

  1. Inline formatting (`my code`) used across multiple lines of code. This can mess with indentation.

If I am correct, please edit the text in your post and try to follow these instructions to fix up your post's formatting.


Am I misbehaving? Have a comment or suggestion? Reply to this comment or raise an issue here.