从github导入存储库的问题

2024-05-12 13:14:20 发布

您现在位置:Python中文网/ 问答频道 /正文

每次我尝试导入此回购

https://github.com/ArduPilot/pymavlink/blob/7b0d51cca7e75b3cf84f5dbb74e76f727816e50d/mavutil.py

使用以下

pip install https://github.com/ArduPilot/pymavlink.git

然而,我得到了这个错误。你知道吗

Collecting https://github.com/ArduPilot/pymavlink.git
  Downloading https://github.com/ArduPilot/pymavlink.git
  Cannot unpack file c:\users\mike\appdata\local\temp\pip-l_8clc-unpack\pymavlink.git (downloaded from c:\users\mike\appdata\local\temp\pip-nww8fs-build, content-type: text/html; charset=utf-8); cannot detect archive format
Cannot determine archive format of c:\users\mike\appdata\local\temp\pip-nww8fs-build

Tags: piphttpsgitgithubcomlocalusersappdata
1条回答
网友
1楼 · 发布于 2024-05-12 13:14:20

试试pip install git+https://github.com/ArduPilot/pymavlink.git。这告诉pip它是git存档。
否则,您总是可以直接使用github归档:pip install https://github.com/ArduPilot/pymavlink/archive/master.zip

相关问题 更多 >