• Register
0 votes
7.2k views

Problem :

I was installing pyswip and needed to run a setup.py file.Using the command "python setup.py", I'm getting the following message: "python: can't open file 'setup.py': [Errno 2] No such file or directory."

Trying to run other .py files from the terminal gives me the same results.

6.9k points

Please log in or register to answer this question.

1 Answer

0 votes

Solution:

When ever you want to run python setup.py please make sure that your setup.py file is present in the current directory.

You can control the current directory with the cd command.

So to resolve your issue follow below approach

cd /home/acacia/Python-3.3.0/PySwip/pyswip-0.2.3
python setup.py install

Further Readings:

https://github.com/sourceperl/smartplugctl/issues/6

38.6k points
edited by

Related questions

0 votes
1 answer 242 views
242 views
Problem : I was installing pyswip and needed to run a setup.py file.Using the command "python setup.py", I'm getting the following message: "python: can't open file 'setup.py': [Errno 2] No such file or directory." Trying to run other .py files from the terminal gives me the same results.
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 5 views
5 views
Problem: What exactly is the problem : Can't open file 'setup.py': [errno 2] no such file or directory?
asked Jun 21 Aurelia Maja 65.6k points
0 votes
1 answer 178 views
178 views
Problem: any help : Python: can't open file 'get-pip.py': [errno 2] no such file or directory.
asked Mar 6 Wafa Abu Yousef 6.1k points
2 votes
1 answer 5.5k views
5.5k views
Problem: When I try to run the below command on my command prompt: python get-pip.py It shows the following message: C:\Users\ASUS>python get-pip.py python: can't open file 'get-pip.py': [Errno 2] No such file or directory How can I have pip installed in my system. Then why am I getting this error message and why I can not open this file. Thanks in advance.
asked May 6, 2020 samhaz 5k points
0 votes
1 answer 2.3k views
2.3k views
Problem : I am very new to Quartz. So whenever I try to install Quartz on my system using pip install Quartz, I face the following error. Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> ... [Errno 2] No such file or directory: 'requirements.txt' I am using Mac OSX with Anaconda. Does anyone have any clue on this issue?
asked Nov 27, 2019 alecxe 7.5k points
0 votes
1 answer 2 views
2 views
Problem: Need assistance : Filenotfounderror: [errno 2] no such file or directory: python
asked Jun 21 asha 104k points
0 votes
1 answer 29 views
29 views
Problem: I am trying to open the file from folder and read it but it's not locating it. I am using Python3.
asked May 31 Irenka Kiri 85.5k points
0 votes
1 answer 6 views
6 views
Problem: Oserror: [errno 2] no such file or directory:
asked Jul 7 Florina Gulnar 94.9k points
0 votes
1 answer 5 views
5 views
Problem: I have no idea to solve this, somebody help : Filenotfounderror: [errno 2] no such file or directory
asked Jun 25 asha 104k points
0 votes
1 answer 2 views
2 views
Problem: Python can't open file no such file or directory
asked Jul 1 nila 104k points