I installed a python script using the instruction of @STAlfas' answer in How do I create deb package for only single python script?

It worked correctly, (I think so). But I don't know how to run it. I tried to find it out, but I couldn't. Can somebody help me?

  • Not sure what you did, but is the script installed? and if so, where? – Jacob Vlijm Sep 30 '15 at 6:39
  • I followed the instructions given [here] (askubuntu.com/questions/90764/…) in the answer of @STAlfas. I created .deb file and moved it to home folder. I installed it using "dpkg -i mypyscript.deb". But now I run "mypyscript" it shows "command not found". – lavee_singh Sep 30 '15 at 11:16

If you program is supposed to be called as CLI command, you want to make an entry point using setuptools: https://stackoverflow.com/questions/17401381/debianzing-a-python-program-to-get-a-deb

If it's used as a library, you can use the 'import' statement in python to use the code.

  • You're right, it's installed as a python-module. But I wanted it to act like a linux command-line software. – lavee_singh Sep 30 '15 at 11:25
  • Then the instructions in the link should be exactly what you need. Have you had any luck in trying it out? – Anders Olsson Sep 30 '15 at 16:14

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.