pip 不会安装包

Ale*_*ont 4 python packages pip

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

我收到错误消息:

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
Run Code Online (Sandbox Code Playgroud)

这是什么问题,我还能如何安装这个包?

小智 5

尝试:

pip install git+git://github.com/gka/pyshpgeocode.git
Run Code Online (Sandbox Code Playgroud)

  • 这似乎也安装没有问题,但导入 shapegeocode 不起作用 (2认同)

And*_* H. 4

尝试:

git clone https://github.com/gka/pyshpgeocode.git
cd pyshpgeocode/
python setup.py install
Run Code Online (Sandbox Code Playgroud)