Permission denied inspite of doing chmod 777 - macos

(env3) ishandutta2007#MacBook-Pro:~/Documents/Projects/YoutubeCommentToWin$ sudo chmod -R 777 env3
(env3) ishandutta2007#MacBook-Pro:~/Documents/Projects/YoutubeCommentToWin$ pip3 install -U nltk
Collecting nltk
Requirement already satisfied, skipping upgrade: six in /Users/ishandutta2007/Documents/Projects/gleam/env3/lib/python3.7/site-packages (from nltk) (1.11.0)
Installing collected packages: nltk
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Users/ishandutta2007/Documents/Projects/gleam/env3/lib/python3.7/site-packages/nltk'
Consider using the `--user` option or check the permissions.

Related

unable to execute /usr/local/bin/pip3: Permission denied

I am trying to:
pip3 install --upgrade pip3
sudo: unable to execute /usr/local/bin/pip3: Permission denied
why permission is dennied?
similar error when i try too install package for example:
sudo pip3 install medaka
sudo: unable to execute /usr/local/bin/pip3: Permission denied

brew update fails with "Permission denied" error

I have been trying to upgrade my brew installation on Mac and it always fails with the following error:
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied # dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied # dir_s_mkdir - /usr/local/Frameworks
I do not want to run brew as sudo, but is there a way to fix this error? I'm not able to install Python3 which is my ultimate goal. Is there another way to install Pythion3 on Mc other than brew? Is there any resolution for this problem here?
EDIT: I tried to remove python3 and tried to re install it again and this time it fails with some other message:
==> Pouring python-3.6.5.high_sierra.bottle.1.tar.gz
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied # dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied # dir_s_mkdir - /usr/local/Frameworks
Try to change owner of /usr/local.
if you use macOS High Sierra or higher try this command:
sudo chown -R $(whoami) $(brew --prefix)/*
if you use macOS Sierra or lower:
sudo chown -R $(whoami) /usr/local
In Mac OSX Mojave, installing Python3, I solved this issue by the following:
sudo mkdir /usr/local/Frameworks
sudo chown -R user:group /usr/local/Frameworks/
brew link python
Where user and group are specified as set by the OS. You can find out what user/group values should be by doing:
ls -al /usr/local
And then python3 was successfully installed:
> python3
Python 3.7.2 (default, Feb 12 2019, 08:15:36)
[.Clang 10.0.0 (clang-1000.11.45.5)] on darwin

"PermissionError: [Errno 13] Permission denied" error while installing package in anaconda in windows

I'm getting Error while installing watson package in anaconda by
pip install --upgrade watson-developer-cloud==0.26.1
even though I run the command prompt as administrator mode!(in windows 10, Python 3.6.3)
Collecting watson-developer-cloud==0.26.1
.
.
.
.
.
.
PermissionError: [Errno 13] Permission denied: 'C:\ProgramData\Anaconda3\Lib\site-packages\_cffi_backend.cp36-win_amd64.pyd'
Try out to install as a user:
pip install --upgrade watson-developer-cloud==0.26.1 --user
You can also try to use environments.
They are also useful, if you plan to migrate your stuff to the Cloud

Installing Scala's compiler, sbt, on a Mac gives me a permission error

I tried to install Scala compiler, sbt, on a Mac OS. But I got a permission error. Any idea?
mac610881:~ $ brew install sbt
==> Downloading https://github.com/sbt/sbt/releases/download/v1.0.3/sbt-1.0.3.tg
Already downloaded: /Users/.../Library/Caches/Homebrew/sbt-1.0.3.tgz
Error: Permission denied # rb_file_s_rename - (conf/sbtopts, /usr/local/etc/sbtopts)
Following the comment of Jorg W Mittag, I solved this issue using
sudo chown -R $(whoami) /usr/local/etc

unable to download a software in ubuntu due to permission denied

cpp#pachoriya:~$ apt-get install pitivi
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
unable to download a software due to permission denied. How can i install this package?
Installing a software package needs root priviliges. Use sudo
sudo apt-get install pitivi
or switch to root user using sudo -s, then install the packages.
Related read: https://askubuntu.com/questions/168280/how-do-i-grant-sudo-privileges-to-an-existing-user

Resources