Hello, I am unable to install sendgrid with pip --user due to permission issues, I tried running the cmd in administrator, activating in venv, and checking my antivirus if it is blocking it, and it is still saying
ERROR: Error [WinError 5] 存取被拒。 while executing command python setup.py egg_info
Preparing metadata (setup.py) … error
ERROR: Could not install packages due to an OSError: [WinError 5] 存取被拒。
Check the permissions.
Please help
I assume you are on Windows based on the error message. What version of Windows are you using?
When installing the initial Python program make sure you install it somewhere where you are guaranteed to have all permissions, like somewhere in c:\users\YOURUSER\...
It seems likely that you are installing sendgrid for a version of python that sendgrig does not support.
You can see on sendgrid · PyPI that sendgrid only supports up to python 3.11. If you are using 3.13 or 3.12 pip will try to compile the code of sendgrid.
I expect that compiling is failing.
Also note that the maintainer of sendgrid has not updated sendgrib since Dec 1, 2023. If you need this package maintained this may be an issue for you to consider.
Try installing python 3.11 and then see if sendgrid install will work.
Ah, that would explain it, thanks a lot, i am using python 3.1.2.