我能';t安装";“httpclient”;对于python
我的操作系统是Windows7 32位&我使用VScode和python 3.6 32位 当我试着 C:\python>pip安装客户端我能';t安装";“httpclient”;对于python,python,httpclient,Python,Httpclient,我的操作系统是Windows7 32位&我使用VScode和python 3.6 32位 当我试着 C:\python>pip安装客户端 Collecting httpclient Using cached httpclient-0.0.2.zip Complete output from command python setup.py egg_info: Downloading http://pypi.python.org/packages/source/d/distrib
Collecting httpclient
Using cached httpclient-0.0.2.zip
Complete output from command python setup.py egg_info:
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.19.tar.gz
Extracting in C:\Users\Public\Documents\ESTsoft\CreatorTemp\tmptrynwiem
Traceback (most recent call last):
File "C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-build-b7pgq1re\httpclient\distribute_setup.py", line 143, in use_setuptools
raise ImportError
ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-build-b7pgq1re\httpclient\setup.py", line 13, in <module>
use_setuptools()
File "C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-build-b7pgq1re\httpclient\distribute_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-build-b7pgq1re\httpclient\distribute_setup.py", line 125, in _do_download_build_egg(egg, tarball, to_dir)
File "C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-build-b7pgq1re\httpclient\distribute_setup.py", line 99, in _build_egg_extractall(tar)
File "C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-build-b7pgq1re\httpclient\distribute_setup.py", line 467, in _extractallself.chown(tarinfo, dirpath)
TypeError: chown() missing 1 required positional argument: 'numeric_owner'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-build-b7pgq1re\httpclient\
正在收集httpclient
使用缓存的httpclient-0.0.2.zip
从命令python setup.py egg_info完成输出:
正在下载http://pypi.python.org/packages/source/d/distribute/distribute-0.6.19.tar.gz
在C:\Users\Public\Documents\ESTsoft\CreatorTemp\tmptrynwiem中提取
回溯(最近一次呼叫最后一次):
文件“C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-build-b7pgq1re\httpclient\distribution\u setup.py”,第143行,正在使用的\u setuptools
引起恐慌
强求恐怖
在处理上述异常期间,发生了另一个异常:
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-build-b7pgq1re\httpclient\setup.py”,第13行,在
使用_setuptools()
文件“C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-build-b7pgq1re\httpclient\distribute\u setup.py”,第145行,正在使用的\u setuptools
返回下载(版本、下载库、到目录、下载延迟)
文件“C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-build-b7pgq1re\httpclient\distribution\u setup.py”,第125行,在“下载构建”egg中(egg,tarball,to\u dir)
文件“C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-build-b7pgq1re\httpclient\distribution\u setup.py”,第99行,位于“build\u egg\u extractall(tar)中
文件“C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-build-b7pgq1re\httpclient\distribution_setup.py”,第467行,位于_extractallself.chown(tarinfo,dirpath)
TypeError:chown()缺少1个必需的位置参数:“数值\u所有者”
----------------------------------------
命令“python setup.py egg_info”在C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-build-b7pgq1re\httpclient中失败,错误代码为1\
在Python 3中,该模块已重命名为。您不需要在Python3中安装http.client
。它是预先安装的。因此,直接将其导入脚本,如下所示:
import http.client
您是否应该启动
pip-install-httpclient
而不是pip-installclient
?这似乎是一个没有解决方案的问题。那个httpclient是什么?您可以指向它的主页或repo吗?哦,我输入了“pip install httpclient”http。客户端是python3标准库的一部分,不需要安装,只需在代码中导入即可httpclient
是必须安装的第三方软件包。在pypi上为它列出的github回购已经消失,所以我怀疑它是弃置软件。