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 19, 2020 in Python by akhtar
• 38,260 points
48,675 views

1 answer to this question.

+1 vote

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


Hope this helps!!

If you need to know more about Python, join Python certification course today.

Thanks!

answered Sep 20, 2020 by MD
• 95,460 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 28, 2020 in Python by Gitika
• 65,890 points
4,131 views
0 votes
1 answer

Python: Could not install packages due to an OSError: [Errno 2] No such file or directory

I also met with the same problem ...READ MORE

answered Apr 28, 2022 in Python by narikkadan
• 63,680 points
38,853 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
9,157 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
28,724 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 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,391 views
0 votes
1 answer
+5 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,790 points
3,994 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,460 points
5,412 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,460 points
13,396 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP