usr bin env python No such file or directory

0 votes

Hi Guys,

I am trying to run one python script to fetch dynamic IP. But it is showing me the below error.

/usr/bin/env: ‘python’: No such file or directory
Sep 18, 2020 in Python by akhtar
• 38,170 points
6,613 views

1 answer to this question.

0 votes

Hi@akhtar,

It seems your python script is not able to find python in your system.  You may have python3 installed in your system. But it is finding /usr/bin/python folder. So you can create a symlink to it.

$ sudo ln -s /usr/bin/python3 /usr/bin/python
answered Sep 20, 2020 by MD
• 95,180 points

Related Questions In Python

0 votes
1 answer

fatal error: Python.h: No such file or directory

On Ubuntu, I was running Python 3 ...READ MORE

answered Nov 27, 2020 in Python by Gitika
• 65,870 points
1,193 views
0 votes
2 answers

How do I convert text file to CSV file with only plain python. Meaning no panda or any other special module?

Steps to Convert Text File to CSV ...READ MORE

answered Oct 15, 2020 in Python by Abdul Shekh
1,194 views
+2 votes
6 answers

How can I change directory or "cd" in Python?

Context Manager: cd import os class cd:     """Context manager for ...READ MORE

answered Oct 18, 2018 in Python by Nabarupa
10,614 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 2,062 views
0 votes
0 answers
+4 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,810 points
1,574 views
0 votes
1 answer

Error executing Jupyter command 'notebook': [Errno 2] No such file or directory

Hi@akhtar, I think there is a problem with ...READ MORE

answered Jun 25, 2020 in Python by MD
• 95,180 points
1,374 views
0 votes
1 answer

how to solve the error : "ImportError: No module named Tkinter" in python.

Hi@Umama, If you are using Linux system, then ...READ MORE

answered Apr 27, 2020 in Python by MD
• 95,180 points
9,542 views