我正在学习如何使用GitHub,我想下载一个python库以获取两种货币之间的最新汇率,我在GitHub上找到了一种。如何下载并在pycharm上使用?
如果它甚至是一个稍微受欢迎的库,它应该有一个PyPi页面。检查文档或自述文件是否有对
的提及pip install <package_name>
如果以上都不是,请尝试存储库链接可能类似于:
https://github.com/<username>/<repo>.git
为此,打开终端并运行
pip install https://github.com/<username>/<repo>/archive/master.zip
替换用户名并从URL中回购。
示例:对于熊猫,URL为:https://github.com/pandas-dev/pandas正在运行
pip install https://github.com/pandas-dev/pandas/arhcive/master.zip
应该将熊猫安装到我的系统上,但是在上述情况下,如前所述,运行pip install pandas
就足够了,因为熊猫已经发布到PyPi上了