python安装库失败cannot determine archive_pip install github repository失败:没有文件/目录...

我在python模块上工作,我在Github上托管它。

为了测试,我尝试用pip安装它。

每次我在跑步时出错:pip install git+git://github.com/amiceli/i2c-module

以及输出:Collecting git+git://github.com/amiceli/i2c-module

Cloning git://github.com/amiceli/i2c-module to /tmp/pip-HbjLru-build

No files/directories in /tmp/pip-HbjLru-build/pip-egg-info (from PKG-INFO)

或pip install https://github.com/amiceli/i2c-module

输出:Collecting https://github.com/amiceli/i2c-module

/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90:

InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail.

For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.

InsecurePlatformWarning

Downloading https://github.com/amiceli/i2c-module

- 36kB 328kB/s

Cannot unpack file /tmp/pip-3Qo8KK-unpack/i2c-module (downloaded from /tmp/pip-KnZ537-build, content-type: text/html; charset=utf-8); cannot detect archive format

Cannot determine archive format of /tmp/pip-KnZ537-build

或再次:pip install git+git://github.com:amiceli/i2c-module.git

输出:Collecting git+git://github.com:amiceli/i2c-module.git

Cloning git://github.com:amiceli/i2c-module.git to /tmp/pip-d7KPkA-build

fatal: unable to connect to github.com:

github.com: Servname() n'est pas support?e pour ai_socktype

Complete output from command git clone -q git://github.com:amiceli/i2c-module.git /tmp/pip-d7KPkA-build:

----------------------------------------

Command "git clone -q git://github.com:amiceli/i2c-module.git /tmp/pip-d7KPkA-build" failed with error code 128 in None

编辑

我有一只新虫子。我已经安装了模块,它可以工作。

但是当我尝试导入它时,我有一个No module named error。

当我尝试pip freeze时,我可以看到列表中的模块。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值