zurdar
Posts: 6
Joined: Sun Jan 24, 2016 9:59 am

[SOLVED] How to install Python module from source?

Mon Jan 08, 2018 6:57 am

Hi,

Could somebody please guide me in installing Python module from source? It's about https://github.com/Diaoul/subliminal which I've installed as per instruction using "[sudo] pip install subliminal". Problem is that version 2.0.5 that is available on PyPi is outdated and there was a vast amount of development done since it's release. I'd like to install develop branch from github, but don't even know how to start...

[UPDATE]

Just got reply in another place. In case somebody might need it in the future below is a solution:

https://stackoverflow.com/questions/201 ... epo-branch
Last edited by zurdar on Mon Jan 08, 2018 4:40 pm, edited 3 times in total.

User avatar
topguy
Posts: 6491
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: [Q] How to install Python module from source?

Mon Jan 08, 2018 1:23 pm

I'm no Python expert but..
I think you just checkout the code from git and run the "setup.py" program.

Code: Select all

sudo python setup.py install
.... maybe.

zurdar
Posts: 6
Joined: Sun Jan 24, 2016 9:59 am

Re: [Q] How to install Python module from source?

Mon Jan 08, 2018 1:55 pm

Thanks, will try that. Should I uninstall PyPi version first or this new one will replace it?

User avatar
topguy
Posts: 6491
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: [Q] How to install Python module from source?

Mon Jan 08, 2018 2:11 pm

usually safest to uninstall first, there is a lot of details around "pip" I dont understand.

zurdar
Posts: 6
Joined: Sun Jan 24, 2016 9:59 am

Re: [Q] How to install Python module from source?

Mon Jan 08, 2018 4:36 pm

Just got reply in another place. In case somebody might need it in the future below is a solution:

https://stackoverflow.com/questions/201 ... epo-branch

Return to “Raspberry Pi OS”