I'm trying to install TensorFlow and I'm getting this error.
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\\Users\\ryans\\AppData\\Roaming\\Python\\Python39\\site-packages\\tensorflow\\~ompiler\\tf2tensorrt\\_pywrap_py_utils.pyd'
Check the permissions.
I tried to install with this: pip3 install --upgrade tensorflow --user
I Googled for a solution. I haven't found anything yet. Has anyone encountered this? Better yet, any solutions for this kind of thing?
If you are installing it, don't use the upgrade flag, try pip install tensorflow
instead or pip install tensorflow --user
or pip3 install tensorflow
or python3 -m pip install tensorflow
.
Also check if windows defender is blocking the installation. You can check the shield icon in the bottom left corner in the notification area.
If you don't give it permission, it will not allow you to modify any system files.
You also need to have permission to read and write files / data in your account. Please make sure you have administrator rights in your account.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.