steemconnect授权用在python上怎么装不上呐?求助!✨

in #python6 years ago

这两天自己在倒腾python,算是做了个能简单用用的东西,想着分享给大家一起用,但是输入密码什么的安全系数总是不那么放心,想着是否有steemconnect能直接授权~但是我找了https://github.com/emre/steemconnect-python-client ,根据说明安装依赖包(大概这个叫法,我门外汉)后提示了两大段错误,一下是错误提示红色部分。

...
Failed building wheel for biscuits
...
Command ""d:\program files\miniconda3\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\Shine\\AppData\\Local\\Temp\\pip-install-sk1h51j1\\biscuits\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Shine\AppData\Local\Temp\pip-record-tsvqjity\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Shine\AppData\Local\Temp\pip-install-sk1h51j1\biscuits\

求助各位希望能装上!或者告诉我其他用steemconnect方式也可以或者你们觉得直接贴密码也是安全的也可告诉我,我就不折腾了!@deanliu @antonsteemit @yjcps @ety001
我不知道还有哪位会python的,没有点到名能帮我的也请不吝留言或者村里找我聊,多谢!


Photo by NESA by Makers on Unsplas

以下是整个过程。

D:\PythonProject\.vscode>pip install steemconnect
Collecting steemconnect
Requirement already satisfied: requests in d:\program files\miniconda3\lib\site-packages (from steemconnect) (2.18.4)
Collecting responses (from steemconnect)
  Using cached https://files.pythonhosted.org/packages/1b/d4/aaf1ce65e817f889fc44f7cc3213045f7fa885e386103d278a66d063f0a3/responses-0.10.1-py2.py3-none-any.whl
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in d:\program files\miniconda3\lib\site-packages (from requests->steemconnect) (3.0.4)
Requirement already satisfied: idna<2.7,>=2.5 in d:\program files\miniconda3\lib\site-packages (from requests->steemconnect) (2.6)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in d:\program files\miniconda3\lib\site-packages (from requests->steemconnect) (1.22)
Requirement already satisfied: certifi>=2017.4.17 in d:\program files\miniconda3\lib\site-packages (from requests->steemconnect) (2018.4.16)
Requirement already satisfied: six in c:\users\shine\appdata\roaming\python\python36\site-packages (from responses->steemconnect) (1.11.0)
Collecting biscuits; python_version >= "3.4" (from responses->steemconnect)
  Using cached https://files.pythonhosted.org/packages/98/83/5561ffd0d7651f05adaf332a598953d425a249ee5e251d363a2c3cace5a7/biscuits-0.1.1.tar.gz
Building wheels for collected packages: biscuits
  Running setup.py bdist_wheel for biscuits ... error
  Complete output from command "d:\program files\miniconda3\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\Shine\\AppData\\Local\\Temp\\pip-install-sk1h51j1\\biscuits\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\Shine\AppData\Local\Temp\pip-wheel-17owafd7 --python-tag cp36:
  running bdist_wheel
  running build
  running build_ext
  building 'biscuits' extension
  error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

  ----------------------------------------
  Failed building wheel for biscuits
  Running setup.py clean for biscuits
Failed to build biscuits
Installing collected packages: biscuits, responses, steemconnect
  Running setup.py install for biscuits ... error
    Complete output from command "d:\program files\miniconda3\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\Shine\\AppData\\Local\\Temp\\pip-install-sk1h51j1\\biscuits\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Shine\AppData\Local\Temp\pip-record-tsvqjity\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'biscuits' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

    ----------------------------------------
Command ""d:\program files\miniconda3\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\Shine\\AppData\\Local\\Temp\\pip-install-sk1h51j1\\biscuits\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Shine\AppData\Local\Temp\pip-record-tsvqjity\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Shine\AppData\Local\Temp\pip-install-sk1h51j1\biscuits\


Thank you for reading. ヾ( ̄▽ ̄) See ya.
以上内容和照片未经授权请勿擅自转载,谢谢~

Sort:  

This post has been revived by steem-forever and will get extra rewards. This happens when a post is upvoted on steem-bounty.com after the 7 day post life.

Users can simple upvote via steem-bounty.com continously, so posts can live and earn rewards forever.
Authors can share their steem-bounty.com links and get upvoted forever.

We hope this will allow everyone to earn more meaningful rewards over longer timeframes than before.

出错的原因是由于你电脑上没有或找不到C/C++编译器,无法编译biscuits这个包。biscuits 的开发者也没有提供编译好的安装包,所以要安装它必须先安装C/C++编译器:Visual Studio Community

安装好了C/C++编译器,以后再安装类似的需要从源码编译的Python包应该就不会再遇到:error: Microsoft Visual C++ 14.0 is required. 这样的问题了。

你上面提示是缺对应c++运行库。可以用软件管家一类安装。用windows做这个,很多包的安装都会出问题的。

其实,不需要装那个python包。

自己拼这个地址就行了
https://steemconnect.com/oauth2/authorize?client_id=xxx&redirect_uri=xxx&scope=xxx

redirect_uri指向自己服务,接收和验证一下token。

如果是一次登录长期有效的应用,比如跟赞类应用,需要refresh token。

用steemconnect,refresh token等关键字可以搜到更多信息

YOU JUST GOT UPVOTED

Congratulations,
you just received a 13.69% upvote from @steemhq - Community Bot!

Wanna join and receive free upvotes yourself?
Vote for steemhq.witness on Steemit or directly on SteemConnect and join the Community Witness.

This service was brought to you by SteemHQ.com

Congratulations @shine.wong! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You got more than 1000 replies. Your next target is to reach 1250 replies.

Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

Trick or Treat - Publish your scariest halloween story and win a new badge
SteemitBoard notifications improved

You can upvote this notification to help all Steemit users. Learn why here!

Congratulations @shine.wong! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You received more than 50 as payout for your posts. Your next target is to reach a total payout of 100

Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

Be ready for the next contest!
Trick or Treat - Publish your scariest halloween story and win a new badge
SteemitBoard notifications improved

You can upvote this notification to help all Steemit users. Learn why here!

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.034
BTC 63877.55
ETH 3143.56
USDT 1.00
SBD 3.97