Import a Python library from Github

前端 未结 4 1156
忘了有多久
忘了有多久 2020-12-29 02:30

I\'m new to Python so this may sound silly.

I want to use a Python library I\'ve found on Github, lets say on https://github.com/praw-dev/praw, and I wa

4条回答
  •  鱼传尺愫
    2020-12-29 03:03

    Actually, if given package is not on PyPI (or you want a specific branch) you can still install it through pip from GitHub with:

    pip install git+https://github.com/[repo owner]/[repo]@[branch name]
    

    And for your problem it would be (although @pandita's answer is correct for normal usage case):

    pip install git+https://github.com/praw-dev/praw.git
    

    For more information check this answer.

提交回复
热议问题