pip无法安装包

5 投票
3 回答
17877 浏览
提问于 2025-05-10 15:29

我正在尝试使用pip安装这个软件包:https://github.com/gka/pyshpgeocode

但是我收到了一个错误信息:

Cannot unpack file c:\users\alexis\appdata\local\temp\pip-xljjwr-unpack\pyshpgeocode.git (downloaded from c:\users\alexis\appdata\local\temp\pip-jtyh7r-build, content-type: text/html; charset=utf-8); cannot detect archive format
Cannot determine archive format of c:\users\alexis\appdata\local\temp\pip-jtyh7r-build

这个问题是什么?我还有什么其他方法可以安装这个软件包呢?

相关文章:

  • 暂无相关问题
暂无标签

3 个回答

0

我尝试了一样的安装,结果也遇到了同样的错误 no module named shapegeocode。我觉得这个安装没有按预期工作。具体来说,shapegeocode.py 文件没有被放到任何地方。所以我从GitHub上下载了这个文件,然后手动把 shapegeocode.py 放到了 .\Lib\site-packages\pyshpgeocode-0.1-py2.7.egg 这个文件夹里,安装完成后(这会更新 .\Lib\site-packages\easy-install.pth)。然后它就正常工作了。

4

尝试:

git clone https://github.com/gka/pyshpgeocode.git
cd pyshpgeocode/
python setup.py install
7

尝试:

pip install git+git://github.com/gka/pyshpgeocode.git

撰写回答