FYWinds / takker

一个基于Nonebot2和go-cqhttp的娱乐性qq机器人,已停更
GNU Affero General Public License v3.0
82 stars 11 forks source link

安装依赖时报错是怎么回事,操作系统是Windows Server 2012 R2 #17

Closed Fahaxikiii closed 2 years ago

Fahaxikiii commented 2 years ago

C:\Users\Administrator\Desktop\takker-master>poetry install --no-dev Installing dependencies from lock file

Package operations: 2 installs, 0 updates, 0 removals

? Installing opencv-python (4.5.4.58) ? Installing wordcloud (1.8.1)

RuntimeError

Invalid hashes (sha256:7651f5e88ba794b20bcf1c030d8de440929f9a65e1d498fb4006cee 8c58fb7e5) for opencv-python (4.5.4.58) using archive opencv_python-4.5.4.58-cp3 9-cp39-win_amd64.whl. Expected one of sha256:02872e0a9358526646d691f390143e9c211 09c210095314abaa0641211cda077, sha256:085c5fcf5a6479c34aca3fd0f59055e704083d6a44 009d6583c675ff1a5a0625, sha256:0d6249a49122a78afc6685ddb1377a87e46414ae61c84535c 4c6024397f1f3e8, sha256:0eba0bfe62c48a02a5af3a0944e872c99f57f98653bed14d51c6991a 58f9e1d1, sha256:215bdf069847d4e3b0447a34e9eb4046dd4ca523d41fe4381c1c55f6704fd0d c, sha256:22bcc3153a7d4f95aff79457eef81ef5e40ab1851b189e014412b5e9fbee2573, sha2 56:26feeeb280de179f5dbb8976ebf7ceb836bd263973cb5daec8ca36e8ef7b5773, sha256:2fff 48a641a74d1def31c1e88f9e5ce50ba4d0f87d085dfbf8bc844e12f6cd54, sha256:315c357522b 6310ef7a0718d9f0c5d3110e59c19140705499a3c29bdd8c0124f, sha256:48288428f407bacba5 f73d460feb4a1ecafe87db3d7cfc0730a49fb32f589bbf, sha256:4a13381bdfc0fb4b080efcc27 c46561d0bd752f126226e9f19aa9cbcf6677f40, sha256:4abe9c4fb6fe16daa9fcdd68b5357d35 30431341aa655203f8e84f394e1fe6d4, sha256:4b614fbd81aeda53ce28e645aaee18fda7c7f2a 48eb7f1a70a7c6c3427946342, sha256:5370a11757fbe94b176771269aff599f4da8676c2a672b 13bcbca043f2e3eea8, sha256:637f4d3ad81bd27f273ede4c5fa6c26afb85c097c9715baf107cc 270e37f5fea, sha256:69a78e40a374ac14e4bf15a13dbb6c30fd2fbd5fcd3674d020a31b88861d 5aaf, sha256:6b87bab220d17e03eeedbcc6652d9d7e7bb09886dbd0f810310697a948b4c6fd, s ha256:887a61097092dc0bf23fa24646dbc8cfeeb753649cb28a3782a93a6879e3b7d2, sha256:8 ddf4dcd8199209e33f21deb0c6d8ab62b21802816bba895fefc346b6d2e522d, sha256:8f7886ac abaebf0361bd3dbccaa0d08e3f65ab13b7c739eb11e028f01ad13582, sha256:92e9b2261ec7642 29c948d77fe0d922ee033348ca6519939b87861016c1614b3, sha256:9998ce60884f3cda074f02 b56d2b57ee6bd863e2ddba132da2b0af3b9487d584, sha256:9b2c198af083a693d42a82bddc4d1 f7e6bb02c64192ff7fac1fd1d43a8cf1be6, sha256:9bcca50c5444b5cfb01624666b69f91ba8f2 d2bf4ef37b111697aafdeb81c99f, sha256:a2a7f09b8843b85f3e1b02c5ea3ddc0cb9f5ad96983 80109b37069ee8db7746d, sha256:ac852fcaac93439f2f7116ddffdc23fd366c872200ade22724 46f9898180cecb, sha256:bc34cdbfbab463750713118c8259a5d364547adab8ed91e94ba888349 f33590a, sha256:c44f5c51e92322ed832607204249c190764dec6cf29e8ba6d679b10326be1c1b , sha256:d4b1d0b98ee72ba5dd720166790fc93ce459281e138ee79b0d41420b3da52b2e, sha25 6:eaa144013b597e4dcabc8d8230edfe810319de01b5609556d415a20e2b707547.

at c:\users\administrator\appdata\local\programs\python\python39\lib\site-pack ages\poetry\installation\executor.py:627 in _download_link

EnvCommandError

Command C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\takker -reborn-LDKRhFMo-py3.9\Scripts\pip.exe install --no-deps file:///C:/Users/Admini strator/AppData/Local/pypoetry/Cache/artifacts/f4/27/cf/a52e6185703aea1a019cc582 979fa2285190b8ea18928a99f6500cd2e1/wordcloud-1.8.1.tar.gz errored with the follo wing return code 1, and output: Processing c:\users\administrator\appdata\local\pypoetry\cache\artifacts\f4\27 \cf\a52e6185703aea1a019cc582979fa2285190b8ea18928a99f6500cd2e1\wordcloud-1.8.1.t ar.gz Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Building wheels for collected packages: wordcloud Building wheel for wordcloud (setup.py): started Building wheel for wordcloud (setup.py): finished with status 'error' ERROR: Command errored out with exit status 1: command: 'C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\t akker-reborn-LDKRhFMo-py3.9\Scripts\python.exe' -u -c 'import io, os, sys, setup tools, tokenize; sys.argv[0] = '"'"'C:\Users\Administrator\AppData\Local\Te mp\1\pip-req-build-50w265pt\setup.py'"'"'; file='"'"'C:\Users\Administr ator\AppData\Local\Temp\1\pip-req-build-50w265pt\setup.py'"'"';f = getattr (tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.S tringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace ('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec' "'"'))' bdist_wheel -d 'C:\Users\Administrator\AppData\Local\Temp\1\pip-wheel-m5 afk0pk' cwd: C:\Users\Administrator\AppData\Local\Temp\1\pip-req-build-50w265pt \ Complete output (20 lines): running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\wordcloud copying wordcloud\color_from_image.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\tokenization.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\wordcloud.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud_version.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud__init.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\main__.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\stopwords -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-3.9\wordcloud UPDATING build\lib.win-amd64-3.9\wordcloud/_version.py set build\lib.win-amd64-3.9\wordcloud/_version.py to '1.8.1' running build_ext building 'wordcloud.query_integral_image' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Micros oft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

----------------------------------------
ERROR: Failed building wheel for wordcloud
Running setup.py clean for wordcloud

Failed to build wordcloud Installing collected packages: wordcloud Running setup.py install for wordcloud: started Running setup.py install for wordcloud: finished with status 'error' ERROR: Command errored out with exit status 1: command: 'C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs \takker-reborn-LDKRhFMo-py3.9\Scripts\python.exe' -u -c 'import io, os, sys, set uptools, tokenize; sys.argv[0] = '"'"'C:\Users\Administrator\AppData\Local\ Temp\1\pip-req-build-50w265pt\setup.py'"'"'; file='"'"'C:\Users\Adminis trator\AppData\Local\Temp\1\pip-req-build-50w265pt\setup.py'"'"';f = getat tr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io .StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().repla ce('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exe c'"'"'))' install --record 'C:\Users\Administrator\AppData\Local\Temp\1\pip-reco rd-4fb5qbs5\install-record.txt' --single-version-externally-managed --compile -- install-headers 'C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs \takker-reborn-LDKRhFMo-py3.9\include\site\python3.9\wordcloud' cwd: C:\Users\Administrator\AppData\Local\Temp\1\pip-req-build-50w265 pt\ Complete output (22 lines): running install C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\takker-reb orn-LDKRhFMo-py3.9\lib\site-packages\setuptools\command\install.py:34: Setuptool sDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\wordcloud copying wordcloud\color_from_image.py -> build\lib.win-amd64-3.9\wordcloud

  copying wordcloud\tokenization.py -> build\lib.win-amd64-3.9\wordcloud
  copying wordcloud\wordcloud.py -> build\lib.win-amd64-3.9\wordcloud
  copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-3.9\wordcloud
  copying wordcloud\_version.py -> build\lib.win-amd64-3.9\wordcloud
  copying wordcloud\__init__.py -> build\lib.win-amd64-3.9\wordcloud
  copying wordcloud\__main__.py -> build\lib.win-amd64-3.9\wordcloud
  copying wordcloud\stopwords -> build\lib.win-amd64-3.9\wordcloud
  copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-3.9\wordcloud
  UPDATING build\lib.win-amd64-3.9\wordcloud/_version.py
  set build\lib.win-amd64-3.9\wordcloud/_version.py to '1.8.1'
  running build_ext
  building 'wordcloud.query_integral_image' extension
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Micr

osoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tool s/

ERROR: Command errored out with exit status 1: 'C:\Users\Administrator\AppData \Local\pypoetry\Cache\virtualenvs\takker-reborn-LDKRhFMo-py3.9\Scripts\python.ex e' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users \Administrator\AppData\Local\Temp\1\pip-req-build-50w265pt\setup.py'"'"'; file='"'"'C:\Users\Administrator\AppData\Local\Temp\1\pip-req-build- 50w265pt\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; se tup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec (compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Administra tor\AppData\Local\Temp\1\pip-record-4fb5qbs5\install-record.txt' --single-versio n-externally-managed --compile --install-headers 'C:\Users\Administrator\AppData \Local\pypoetry\Cache\virtualenvs\takker-reborn-LDKRhFMo-py3.9\include\site\pyth on3.9\wordcloud' Check the logs for full command output.

at c:\users\administrator\appdata\local\programs\python\python39\lib\site-pack ages\poetry\utils\env.py:1183 in _run 1179│ output = subprocess.checkoutput( 1180│ cmd, stderr=subprocess.STDOUT, **kwargs 1181│ ) 1182│ except CalledProcessError as e: → 1183│ raise EnvCommandError(e, input=input) 1184│ 1185│ return decode(output) 1186│ 1187│ def execute(self, bin, *args, **kwargs):

C:\Users\Administrator\Desktop\takker-master>

Fahaxikiii commented 2 years ago

下了C++z之后报错是这样子: C:\Users\Administrator\Desktop\takker-master>poetry install --no-dev Installing dependencies from lock file

Package operations: 2 installs, 0 updates, 0 removals

? Installing opencv-python (4.5.4.58) ? Installing wordcloud (1.8.1)

RuntimeError

Invalid hashes (sha256:7651f5e88ba794b20bcf1c030d8de440929f9a65e1d498fb4006cee 8c58fb7e5) for opencv-python (4.5.4.58) using archive opencv_python-4.5.4.58-cp3 9-cp39-win_amd64.whl. Expected one of sha256:02872e0a9358526646d691f390143e9c211 09c210095314abaa0641211cda077, sha256:085c5fcf5a6479c34aca3fd0f59055e704083d6a44 009d6583c675ff1a5a0625, sha256:0d6249a49122a78afc6685ddb1377a87e46414ae61c84535c 4c6024397f1f3e8, sha256:0eba0bfe62c48a02a5af3a0944e872c99f57f98653bed14d51c6991a 58f9e1d1, sha256:215bdf069847d4e3b0447a34e9eb4046dd4ca523d41fe4381c1c55f6704fd0d c, sha256:22bcc3153a7d4f95aff79457eef81ef5e40ab1851b189e014412b5e9fbee2573, sha2 56:26feeeb280de179f5dbb8976ebf7ceb836bd263973cb5daec8ca36e8ef7b5773, sha256:2fff 48a641a74d1def31c1e88f9e5ce50ba4d0f87d085dfbf8bc844e12f6cd54, sha256:315c357522b 6310ef7a0718d9f0c5d3110e59c19140705499a3c29bdd8c0124f, sha256:48288428f407bacba5 f73d460feb4a1ecafe87db3d7cfc0730a49fb32f589bbf, sha256:4a13381bdfc0fb4b080efcc27 c46561d0bd752f126226e9f19aa9cbcf6677f40, sha256:4abe9c4fb6fe16daa9fcdd68b5357d35 30431341aa655203f8e84f394e1fe6d4, sha256:4b614fbd81aeda53ce28e645aaee18fda7c7f2a 48eb7f1a70a7c6c3427946342, sha256:5370a11757fbe94b176771269aff599f4da8676c2a672b 13bcbca043f2e3eea8, sha256:637f4d3ad81bd27f273ede4c5fa6c26afb85c097c9715baf107cc 270e37f5fea, sha256:69a78e40a374ac14e4bf15a13dbb6c30fd2fbd5fcd3674d020a31b88861d 5aaf, sha256:6b87bab220d17e03eeedbcc6652d9d7e7bb09886dbd0f810310697a948b4c6fd, s ha256:887a61097092dc0bf23fa24646dbc8cfeeb753649cb28a3782a93a6879e3b7d2, sha256:8 ddf4dcd8199209e33f21deb0c6d8ab62b21802816bba895fefc346b6d2e522d, sha256:8f7886ac abaebf0361bd3dbccaa0d08e3f65ab13b7c739eb11e028f01ad13582, sha256:92e9b2261ec7642 29c948d77fe0d922ee033348ca6519939b87861016c1614b3, sha256:9998ce60884f3cda074f02 b56d2b57ee6bd863e2ddba132da2b0af3b9487d584, sha256:9b2c198af083a693d42a82bddc4d1 f7e6bb02c64192ff7fac1fd1d43a8cf1be6, sha256:9bcca50c5444b5cfb01624666b69f91ba8f2 d2bf4ef37b111697aafdeb81c99f, sha256:a2a7f09b8843b85f3e1b02c5ea3ddc0cb9f5ad96983 80109b37069ee8db7746d, sha256:ac852fcaac93439f2f7116ddffdc23fd366c872200ade22724 46f9898180cecb, sha256:bc34cdbfbab463750713118c8259a5d364547adab8ed91e94ba888349 f33590a, sha256:c44f5c51e92322ed832607204249c190764dec6cf29e8ba6d679b10326be1c1b , sha256:d4b1d0b98ee72ba5dd720166790fc93ce459281e138ee79b0d41420b3da52b2e, sha25 6:eaa144013b597e4dcabc8d8230edfe810319de01b5609556d415a20e2b707547.

at c:\users\administrator\appdata\local\programs\python\python39\lib\site-pack ages\poetry\installation\executor.py:627 in _download_link

C:\Users\Administrator\Desktop\takker-master>

Fahaxikiii commented 2 years ago

如果运行的话就是这样 C:\Users\Administrator\Desktop\takker-master>poetry run bot.py

OSError

[WinError 193] %1 不是有效的 Win32 应用程序。

at c:\users\administrator\appdata\local\programs\python\python39\lib\subproces s.py:1416 in _execute_child 1412│ sys.audit("subprocess.Popen", executable, args, cwd, en v) 1413│ 1414│ # Start the process 1415│ try: → 1416│ hp, ht, pid, tid = _winapi.CreateProcess(executabl e, args, 1417│ # no special security 1418│ None, None, 1419│ int(not close_fds), 1420│ creationflags,

C:\Users\Administrator\Desktop\takker-master>