1

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 06:39
  • I followed the instructions given [here] (http://askubuntu.com/questions/90764/how-do-i-create-a-deb-package-for-a-single-python-script) 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

1 Answers1

1

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.