无法安装“oauth2client”在Microsoft机器学习 - Python [英] Fail to install "oauth2client" in Microsoft Machine Learning - Python

查看:78
本文介绍了无法安装“oauth2client”在Microsoft机器学习 - Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图执行:" pip install oauth2client ",但我看到"pyasn1-modules 0.2.1有要求pyasn1< 0.5.0, > = 0.4.1,但你的pyasn1 0.2.3是不兼容的。"以下消息是
整个邮件正文。如果有人可以帮忙吗?


C:\Program Files \ Microsoft SQL Server \ MSSQL14.HUSCIENCE \PYTHON_SERVICES \Scripts> pip install oauth2client

收集oauth2client

 使用缓存https://files.pythonhosted.org/packages/82/d8/3eab58811282ac7271a081ba5c0d4b875ce786ca68ce43e2a62ade32e9a8/oauth2client-4.1.2-py2.py3-none-any.whl

收集pyasn1-模块> = 0.0 .5(来自oauth2client)

 使用缓存https://files.pythonhosted.org/packages/e9/51/bcd96bf6231d4b2cc5e023c511bee86637ba375c44a6f9d1b4b7ad1ce4b9/pyasn1_modules-0.2.1-py2.py3-none-any.whl

收集RSA> = 3.1.4 (来自oauth2client)

 使用缓存https://files.pythonhosted.org/packages/e1/ae/baedc9cb175552e95f3395c43055a6a5e125ae4d48a1d7a924baca83e92e/rsa-3.4.2-py2.py3-none-any.whl

要求已经满足:六位> = 1.6.1在C:\program files\microsoft SQL server\mssql14.huscience\python_services\lib\site-包(从oauth2client)(1.10.0)

收集httplib2的> ; = 0.9.1(来自oauth2client)

 使用缓存https://files.pythonhosted.org/packages/fd/ce/aa4a385e3e9fd351737fd2b07edaa56e7a730448465aceda6b35086a0d9b/httplib2-0.11.3.tar.gz

要求已经满足:pyasn1>在C = 0.1.7: \program files\microsoft sql server \mssql14.huscience\python_services\lib\site-packages(来自oauth2client)(0.2.3)
$
为收集的包构建轮子:httplib2

 为httplib2运行setup.py bdist_wheel ...已完成
 保存在目录:C:\Users\ZHuang\AppData\Local\pip\Cache\wheels\1b\9c\9e\1f6fdb21dbb1fe6a99101d697f12cb8c1fa96c1587df69adba

成功建立httplib2的

pyasn1-modules 0.2.1有要求pyasn1< 0.5.0,> = 0.4.1,但你的pyasn1 0.2.3是不兼容的。

安装收集的软件包:pyasn1-modules,rsa,httplib2,oauth2client

 脚本pyrsa-decrypt-bigfile.exe,pyrsa-decrypt.exe,pyrsa-encrypt-bigfile.exe,pyrsa-encrypt.exe,pyrsa-keygen.exe,pyrsa-priv2pub.exe,pyrsa-sign.exe和pyrsa- verify.exe安装在'c:\program files \ microsoft sql server \mssql14.huscience \ python_services \Scripts'
,这不在路径上。

 考虑将此目录添加到PATH,或者如果您希望禁止此警告,请使用--no-warn-script-location。

已成功安装httplib2-0.11.3 oauth2client-4.1.2 pyasn1-modules -0.2.1 rsa-3.4.2

解决方案

我会尝试卸载旧版本的'pyasn1'模块然后再次尝试安装'oauth2client':


pip uninstall pyasn1



试一试。


I was trying to execute: "pip install oauth2client", but I saw "pyasn1-modules 0.2.1 has requirement pyasn1<0.5.0,>=0.4.1, but you'll have pyasn1 0.2.3 which is incompatible.". The following message is the whole message body. If anyone could help this?

C:\Program Files\Microsoft SQL Server\MSSQL14.HUSCIENCE\PYTHON_SERVICES\Scripts>pip install oauth2client
Collecting oauth2client
  Using cached https://files.pythonhosted.org/packages/82/d8/3eab58811282ac7271a081ba5c0d4b875ce786ca68ce43e2a62ade32e9a8/oauth2client-4.1.2-py2.py3-none-any.whl
Collecting pyasn1-modules>=0.0.5 (from oauth2client)
  Using cached https://files.pythonhosted.org/packages/e9/51/bcd96bf6231d4b2cc5e023c511bee86637ba375c44a6f9d1b4b7ad1ce4b9/pyasn1_modules-0.2.1-py2.py3-none-any.whl
Collecting rsa>=3.1.4 (from oauth2client)
  Using cached https://files.pythonhosted.org/packages/e1/ae/baedc9cb175552e95f3395c43055a6a5e125ae4d48a1d7a924baca83e92e/rsa-3.4.2-py2.py3-none-any.whl
Requirement already satisfied: six>=1.6.1 in c:\program files\microsoft sql server\mssql14.huscience\python_services\lib\site-packages (from oauth2client) (1.10.0)
Collecting httplib2>=0.9.1 (from oauth2client)
  Using cached https://files.pythonhosted.org/packages/fd/ce/aa4a385e3e9fd351737fd2b07edaa56e7a730448465aceda6b35086a0d9b/httplib2-0.11.3.tar.gz
Requirement already satisfied: pyasn1>=0.1.7 in c:\program files\microsoft sql server\mssql14.huscience\python_services\lib\site-packages (from oauth2client) (0.2.3)
Building wheels for collected packages: httplib2
  Running setup.py bdist_wheel for httplib2 ... done
  Stored in directory: C:\Users\ZHuang\AppData\Local\pip\Cache\wheels\1b\9c\9e\1f6fdb21dbb1fe6a99101d697f12cb8c1fa96c1587df69adba
Successfully built httplib2
pyasn1-modules 0.2.1 has requirement pyasn1<0.5.0,>=0.4.1, but you'll have pyasn1 0.2.3 which is incompatible.
Installing collected packages: pyasn1-modules, rsa, httplib2, oauth2client
  The scripts pyrsa-decrypt-bigfile.exe, pyrsa-decrypt.exe, pyrsa-encrypt-bigfile.exe, pyrsa-encrypt.exe, pyrsa-keygen.exe, pyrsa-priv2pub.exe, pyrsa-sign.exe and pyrsa-verify.exe are installed in 'c:\program files\microsoft sql server\mssql14.huscience\python_services\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed httplib2-0.11.3 oauth2client-4.1.2 pyasn1-modules-0.2.1 rsa-3.4.2

解决方案

I would try uninstalling the old version of the 'pyasn1' module and then try installing the 'oauth2client' again:

pip uninstall pyasn1

Give that a try.


这篇关于无法安装“oauth2client”在Microsoft机器学习 - Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆