What is setup.py?

后端 未结 10 1770
囚心锁ツ
囚心锁ツ 2020-11-22 09:59

Can anyone please explain what setup.py is and how it can be configured or used?

10条回答
  •  星月不相逢
    2020-11-22 10:39

    When you download a package with setup.py open your Terminal (Mac,Linux) or Command Prompt (Windows). Using cd and helping you with Tab button set the path right to the folder where you have downloaded the file and where there is setup.py :

    iMac:~ user $ cd path/pakagefolderwithsetupfile/
    

    Press enter, you should see something like this:

    iMac:pakagefolderwithsetupfile user$
    

    Then type after this python setup.py install :

    iMac:pakagefolderwithsetupfile user$ python setup.py install
    

    Press enter. Done!

提交回复
热议问题