每次我尝试导入此回购
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
答案 0 :(得分:3)
试试pip install git+https://github.com/ArduPilot/pymavlink.git
。这告诉pip它是一个git存档
否则,您可以直接使用github存档:pip install https://github.com/ArduPilot/pymavlink/archive/master.zip