为什么我无法安装请求功能?

时间:2019-07-29 10:37:51

标签: python-3.x pip

我正在尝试下载需要python附加组件的github项目。我可以安装所有这些,但requests-futures除外,它始终会显示以下错误消息。

收集请求-未来   使用缓存的https://files.pythonhosted.org/packages/47/c4/fd48d1ac5110a5457c71ac7cc4caa93da10a80b8de71112430e439bdee22/requests-futures-1.0.0.tar.gz     错误:命令错误,退出状态为1:      命令:/Library/Frameworks/Python.framework/Versions/3.5/bin/python3 -c'导入sys,setuptools,标记化; sys.argv [0] ='“'”'/private/var/folders/y0/61vntw514q71j6q8d02fvd0r0000gn/T/pip-install-4wofuax9/requests-futures/setup.py'“'”'; 文件 ='“'”'/ private / var / folders / y0 / 61vntw514q71j6q8d02fvd0r0000gn / T / pip-install-4wofuax9 / requests-futures / setup.py'“'”'; f = getattr( tokenize,'“'”'open'“'”',打开)(文件); code = f.read()。replace('“'”“ \ r \ n'”'“ ','“'”'\ n'“'”'); f.close(); exec(compile(code, file ,'“'”'exec'“'”'))) 'egg_info --egg-base pip-egg-info          CWD:/ private / var / folders / y0 / 61vntw514q71j6q8d02fvd0r0000gn / T / pip-install-4wofuax9 / requests-futures /     完整的输出(24行):     https://pypi.python.org/simple/setuptools/上的下载错误:[SSL:TLSV1_ALERT_PROTOCOL_VERSION] tlsv1警报协议版本(_ssl.c:645)-可能找不到某些软件包!     https://pypi.python.org/simple/上的下载错误:[SSL:TLSV1_ALERT_PROTOCOL_VERSION] tlsv1警报协议版本(_ssl.c:645)-可能找不到某些软件包!     找不到setuptools> = 38.6.1的本地软件包或下载链接     追溯(最近一次通话):       文件“”,第1行,位于       在第51行中输入文件“ /private/var/folders/y0/61vntw514q71j6q8d02fvd0r0000gn/T/pip-install-4wofuax9/requests-futures/setup.py”         “编程语言:: Python :: 3.5”,       设置中的文件“ /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/core.py”,第108行         _setup_distribution = dist = klass(attrs)        init 中的文件“ /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/dist.py”第268行         self.fetch_build_eggs(attrs ['setup_requires'])       文件“ /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/dist.py”,第313行,位于fetch_build_eggs中         replace_conflicting =是,       解析文件“ /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/init.py”,行836         dist = best [req.key] = env.best_match(req,ws,installer)       文件“ /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/init.py”,行1081,处于best_match         返回self.obtain(要求,安装程序)       在文件“ /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/init.py”中,获取第1093行         返回安装程序(要求)       文件“ /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/dist.py”,行380,位于fetch_build_egg中         返回cmd.easy_install(req)       在easy_install中的文件“ /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/command/easy_install.py”,第623行         引发DistutilsError(msg)     distutils.errors.DistutilsError:找不到适合Requirement.parse('setuptools> = 38.6.1')的发行版     ---------------------------------------- 错误:命令错误,退出状态为1:python setup.py egg_info检查日志以获取完整的命令输出。

0 个答案:

没有答案