5 votes

Basic How To Help: How do I build/install/??? a python windows desktop widget

Tags: ask

How do I launch an egg directory?
I found a package that I want to use. It's a windows desktop widget. I downloaded the source from Git and unzipped. Installed Python 3.11 in powershell. Executed py setup.py --install from inside the unzipped package directory.
Python reports it installed into C:\users\user\appdata\local\programs\python\python311\lib\site-packages[package].egg.
What do I do to launch the package? I've tried py [package]. The .egg inside that directory appears to be a directory. I tried simply ps: [package]. Nothing seems to launch it.
Kindly help.

Edit: I've since learned my efforts are moot because the widget I was trying to install requires dependencies that are no longer available, and also .egg is a deprecated (and perhaps poorly implemented) way to use python. Thanks to everyone for their help

4 comments

  1. [4]
    glad_cat
    Link
    As usual you should post the source code of your widget because we can't do much without this information. In your case, you mention unzipping a file, but we don't know if it can be automatically...

    As usual you should post the source code of your widget because we can't do much without this information.

    In your case, you mention unzipping a file, but we don't know if it can be automatically installed with pip or other methods.

    1 vote
    1. [3]
      NoblePath
      Link Parent
      I’m loth to post here because not everyone would be comfortable with the purpose of the tool (arr). I’m very python and windows illiterate. Can pip be used on any git repository? Is there an easy...

      I’m loth to post here because not everyone would be comfortable with the purpose of the tool (arr).

      I’m very python and windows illiterate. Can pip be used on any git repository? Is there an easy resource you can point me to?

      1. glad_cat
        Link Parent
        When you install Python, you get pip for free which can install packages from the internet. The most famous server for this is PyPI. If your package is called "arr," you can go there and look for...

        When you install Python, you get pip for free which can install packages from the internet. The most famous server for this is PyPI. If your package is called "arr," you can go there and look for it: https://pypi.org/search/?q=arr.

        Tell us the real name of the software, or where you found it, and then we may be able to give more information.

        1 vote
      2. EUPHORiA
        Link Parent
        Pip can't be used for everything, no. Pip is a package manager and more for when developers build tools/programs to provide additional functions and capabilities like matplotlib which is used for...

        Pip can't be used for everything, no. Pip is a package manager and more for when developers build tools/programs to provide additional functions and capabilities like matplotlib which is used for creating charts and you cant really launch it standalone while something like say sonarr is a program built for use by a user so wouldn't distributed by pip.

        Without knowing the program in question we can't really offer any specific guidance but if Python and programming isn't your thing you may want to look at docker instead. Docker does have a Windows desktop application you can use and most of the arr programs will have pre configured docker containers you can use. It'd be much simpler to do it that way as a new user and honestly that's what I'd do even as somebody who uses python daily for work.