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?

2
  • Not sure what you did, but is the script installed? and if so, where? Sep 30, 2015 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". Sep 30, 2015 at 11:16

1 Answer 1

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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