I have downloaded python 2.7 installer. After downloading the installer, I executed the following command in the terminal:
The execution resulted in the following error:
bash: /home/najam/Downloads/Anaconda2-4.2.0-Linux-x86_64.sh: Permission denied

What am I doing wrong? It'll be much helpful if step-by-step sequence of commands is posted for Anaconda's installation. Thanks.


Change to the installation script directory

cd /home/najam/Downloads/

Add execute permissions (this is the part you missed)

sudo chmod +x Anaconda2-4.2.0-Linux-x86_64.sh

Then install

  • then you should mark the answer as helpful,,glad it helped to,cheers! – Arduino_Sentinel Dec 29 '16 at 14:22
  • I did already, but since my reputation is <15, so the upvote has been recorded, but not yet published – Najam Dec 30 '16 at 8:52
  • no,there is a small tick under the uprooting tab,you should tick that and it will turn green showing that the answer already satisfy you needs – Arduino_Sentinel Dec 30 '16 at 10:25

I think you should better use bash command because you need to give executable permission to the shell script file.

bash /home/najam/Downloads/Anaconda2-4.2.0-Linux-x86_64.sh
  • Do you have a source for this claim? – don.joey Dec 26 '16 at 9:35
  • -1 The official site says to use Bash, not Bourne. continuum.io/downloads#linux – wjandrea Dec 27 '16 at 7:54
  • You're right, it case should use bash instead of sh. – Steve Han Jan 1 '17 at 9:18
  • But, generally which any one betwen is not a big deal. – Steve Han Jan 1 '17 at 9:21
  • Because sh link to bash in linux. sh -> bach. – Steve Han Jan 1 '17 at 9:24

Not the answer you're looking for?Browse other questions tagged or ask your own question.