0

bash: /home/asif/anaconda/bin/python: No such file or directory

i am getting this error while running python command on ubuntu terminal

2 Answers2

1

try the following command:

sudo ln -s /usr/bin/python2.7 /home/asif/anaconda/bin/python
shahin
  • 3,515
  • 1
  • 17
  • 17
  • I wouldn't suggest this as your mixing the two. This could be harder to troubleshoot further issues down the road between system python and Anaconda. Anaconda/bin/python should be prepended to the PATh so that it is selected before system python anyways. – John Morrison Mar 30 '17 at 16:18
0

try to check python is installed or not, and check which version of python you are using,

$ which python
Surajano
  • 2,688
  • 13
  • 25
  • This answer should help you locate python, you then can create a symbolic link if your script expects python to be somewhere else. http://stackoverflow.com/questions/1951742/how-to-symlink-a-file-in-linux – crooksey Mar 30 '17 at 07:26