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,240 points
22,576 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,340 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,850 points
2,780 views
0 votes
1 answer
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
3,790 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
16,200 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 2,760 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
2,058 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,340 points
2,848 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,340 points
10,835 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP