如何从 Github 下载模块
How to download a module from Github
我是 python 的新手,我无法从 GitHub 下载模块:https://github.com/petercerno/good-morning
我在网上寻找解决方案,但我尝试的每个解决方案都不起作用。我试过:
pip install https://github.com/petercerno/good-morning.git
我收到一条错误消息,显示 "Cannot unpack file" & "Cannot determine archive format." 我不知道为什么会收到此错误消息。
只需将 good_download.py and good_morning.py 保存到与 Python 脚本相同的目录,然后导入它们:
import good_morning
import good_download
# do stuff!
我是 python 的新手,我无法从 GitHub 下载模块:https://github.com/petercerno/good-morning
我在网上寻找解决方案,但我尝试的每个解决方案都不起作用。我试过:
pip install https://github.com/petercerno/good-morning.git
我收到一条错误消息,显示 "Cannot unpack file" & "Cannot determine archive format." 我不知道为什么会收到此错误消息。
只需将 good_download.py and good_morning.py 保存到与 Python 脚本相同的目录,然后导入它们:
import good_morning
import good_download
# do stuff!