pip不会安装软件包

问题描述 投票:0回答:3

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

我收到错误消息:

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

这是什么问题,我还可以如何安装此软件包?

python pip packages
3个回答
3
投票

尝试:

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

1
投票

尝试:

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

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)。然后成功了。

© www.soinside.com 2019 - 2024. All rights reserved.