Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Defaulting to user installation because normal site-packages is not writeable" python message

Whenever I try to install a new python package I get this message first :

Defaulting to user installation because normal site-packages is not writeable

even though I have administrator rights and I am running my py scripts and installation commands on my computer.

Any ideas why I keep getting this message before every and each pip installation?

Thanks in advance

like image 916
Wallflower Avatar asked Jan 20 '21 11:01

Wallflower


2 Answers

I had this problem. you can copy packages file to AppData>Roaming>Python>Python3.(X)>script directory work for me!

like image 99
hamidreza bina Avatar answered Sep 21 '22 08:09

hamidreza bina


first I need to ask when you open cmd, is python added to path? when you type 'python' in cmd does something happen? If not, try to add python to path, otherwise if that doesn't work, try re-installing python. Also which version of python do you have? Does this happen with every package you try to install? Finally if nothing works, try to change the download location of python, and run cmd as admin/without admin, try both.

like image 45
Samoshi Avatar answered Sep 19 '22 08:09

Samoshi