Python: can't open file 'setup.py': [errno 2] no such file or directory

Dung Do Tien Mar 21 2021 101

Hello, I'm trying to install setup.py file by using the command python setup.py install but I got an error can't open file 'setup.py': [errno 2] no such file or directory.

 Python: can't open file 'setup.py': [Errno 2] No such file or directory.

I open CMD in window 10 and type command install as above.

I don't know why it does not work for me. please suggest to me if you know any reason.

Have 2 answer(s) found.
  • N

    Nguyen Quang Thai Mar 21 2021

    You need to start setup.py from the folder where it is located.

    Open the folder with setup.py in windows explorer, then open cmd type cd  + that link folder after entering type  python setup.py install

    I hope it works for you.

  • M

    Manish Kumar Mar 21 2021

    When you run python setup.py command it will be required setup.py file has to exist in the current folder to execute.
    You can link to that folder by using cd command:

     cd /home/learn/Python-3.3.0/
    python setup.py install 
Leave An Answer
* NOTE: You need Login before leave an answer

* Type maximum 2000 characters.

* All comments have to wait approved before display.

* Please polite comment and respect questions and answers of others.

Popular Tips

X Close