Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

pip 安装失败 #99

Open
ykla opened this issue Nov 29, 2021 · 0 comments
Open

pip 安装失败 #99

ykla opened this issue Nov 29, 2021 · 0 comments

Comments

@ykla
Copy link

ykla commented Nov 29, 2021

ERROR: Command errored out with exit status 1:
   command: 'C:\Users\ykla\AppData\Local\Programs\Python\Python310\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ykla\\AppData\\Local\\Temp\\pip-install-bujdn8g_\\cffi_0d64212d60404156b1e60a30f9812ad8\\setup.py'"'"'; __file__='"'"'C:\\Users\\ykla\\AppData\\Local\\Temp\\pip-install-bujdn8g_\\cffi_0d64212d60404156b1e60a30f9812ad8\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\ykla\AppData\Local\Temp\pip-pip-egg-info-ptwmsj5n'
       cwd: C:\Users\ykla\AppData\Local\Temp\pip-install-bujdn8g_\cffi_0d64212d60404156b1e60a30f9812ad8\
  Complete output (19 lines):
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "C:\Users\ykla\AppData\Local\Temp\pip-install-bujdn8g_\cffi_0d64212d60404156b1e60a30f9812ad8\setup.py", line 127, in <module>
      if sys.platform == 'win32' and uses_msvc():
    File "C:\Users\ykla\AppData\Local\Temp\pip-install-bujdn8g_\cffi_0d64212d60404156b1e60a30f9812ad8\setup.py", line 105, in uses_msvc
      return config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif')
    File "C:\Users\ykla\AppData\Local\Programs\Python\Python310\lib\distutils\command\config.py", line 225, in try_compile
      self._compile(body, headers, include_dirs, lang)
    File "C:\Users\ykla\AppData\Local\Programs\Python\Python310\lib\distutils\command\config.py", line 132, in _compile
      self.compiler.compile([src], include_dirs=include_dirs)
    File "C:\Users\ykla\AppData\Local\Programs\Python\Python310\lib\distutils\_msvccompiler.py", line 323, in compile
      self.initialize()
    File "C:\Users\ykla\AppData\Local\Programs\Python\Python310\lib\distutils\_msvccompiler.py", line 220, in initialize
      vc_env = _get_vc_env(plat_spec)
    File "C:\Users\ykla\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\msvc.py", line 316, in msvc14_get_vc_env
      return _msvc14_get_vc_env(plat_spec)
    File "C:\Users\ykla\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\msvc.py", line 270, in _msvc14_get_vc_env
      raise distutils.errors.DistutilsPlatformError(
  distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  ----------------------------------------
WARNING: Discarding https://pypi.tuna.tsinghua.edu.cn/packages/64/7c/27367b38e6cc3e1f49f193deb761fe75cda9f95da37b67b422e62281fcac/cffi-1.12.2.tar.gz#sha256=e113878a446c6228669144ae8a56e268c91b7f1fafae927adc4879d9849e0ea7 (from https://pypi.tuna.tsinghua.edu.cn/simple/cffi/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement cffi==1.12.2 (from versions: 0.1, 0.2, 0.2.1, 0.3, 0.4, 0.4.1, 0.4.2, 0.5, 0.6, 0.7, 0.7.1, 0.7.2, 0.8, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.8.6, 0.9.0, 0.9.1, 0.9.2, 1.0.0, 1.0.1, 1.0.2.post2, 1.0.3, 1.1.0, 1.1.1, 1.1.2, 1.2.0.post1, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.2, 1.8.3, 1.9.0, 1.9.1, 1.10.0, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.11.4, 1.11.5, 1.12.0, 1.12.1, 1.12.2, 1.12.3, 1.13.0, 1.13.1, 1.13.2, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0rc1, 1.15.0rc2, 1.15.0)
ERROR: No matching distribution found for cffi==1.12.2

C:\Users\ykla\Desktop\gitbook2pdf-master>pip install -r requirements.txt
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting aiohttp==3.7.4
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/7a/95/eb60aaad7943e18c9d091de93c9b0b5ed40aa67c7d5e3c5ee9b36f100a38/aiohttp-3.7.4.tar.gz (1.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting async-timeout==3.0.1
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e1/1e/5a4441be21b0726c4464f3f23c8b19628372f606755a9d2e46c187e65ec4/async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Collecting attrs==19.1.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/23/96/d828354fa2dbdf216eaa7b7de0db692f12c234f7ef888cc14980ef40d1d2/attrs-19.1.0-py2.py3-none-any.whl (35 kB)
Collecting cairocffi==1.0.2
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/0f/0f/7e21b5ddd31b610e46a879c0d21e222dd0fef428c1fc86bbd2bd57fed8a7/cairocffi-1.0.2.tar.gz (68 kB)
  Preparing metadata (setup.py) ... done
Collecting CairoSVG==2.5.1
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/5c/a0/9900cf4556f5d55f09bd8c6c28454349235e77ac56f648a463fc0df0045b/CairoSVG-2.5.1-py3-none-any.whl (45 kB)
Collecting certifi==2018.11.29
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9f/e0/accfc1b56b57e9750eba272e24c4dddeac86852c2bebd1236674d7887e8a/certifi-2018.11.29-py2.py3-none-any.whl (154 kB)
Collecting cffi==1.12.2
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/64/7c/27367b38e6cc3e1f49f193deb761fe75cda9f95da37b67b422e62281fcac/cffi-1.12.2.tar.gz (453 kB)
  Preparing metadata (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\ykla\AppData\Local\Programs\Python\Python310\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ykla\\AppData\\Local\\Temp\\pip-install-duii88lv\\cffi_ac38c47a40584afe9bacff8f47165212\\setup.py'"'"'; __file__='"'"'C:\\Users\\ykla\\AppData\\Local\\Temp\\pip-install-duii88lv\\cffi_ac38c47a40584afe9bacff8f47165212\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\ykla\AppData\Local\Temp\pip-pip-egg-info-klzy1t6l'
       cwd: C:\Users\ykla\AppData\Local\Temp\pip-install-duii88lv\cffi_ac38c47a40584afe9bacff8f47165212\
  Complete output (19 lines):
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "C:\Users\ykla\AppData\Local\Temp\pip-install-duii88lv\cffi_ac38c47a40584afe9bacff8f47165212\setup.py", line 127, in <module>
      if sys.platform == 'win32' and uses_msvc():
    File "C:\Users\ykla\AppData\Local\Temp\pip-install-duii88lv\cffi_ac38c47a40584afe9bacff8f47165212\setup.py", line 105, in uses_msvc
      return config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif')
    File "C:\Users\ykla\AppData\Local\Programs\Python\Python310\lib\distutils\command\config.py", line 225, in try_compile
      self._compile(body, headers, include_dirs, lang)
    File "C:\Users\ykla\AppData\Local\Programs\Python\Python310\lib\distutils\command\config.py", line 132, in _compile
      self.compiler.compile([src], include_dirs=include_dirs)
    File "C:\Users\ykla\AppData\Local\Programs\Python\Python310\lib\distutils\_msvccompiler.py", line 323, in compile
      self.initialize()
    File "C:\Users\ykla\AppData\Local\Programs\Python\Python310\lib\distutils\_msvccompiler.py", line 220, in initialize
      vc_env = _get_vc_env(plat_spec)
    File "C:\Users\ykla\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\msvc.py", line 316, in msvc14_get_vc_env
      return _msvc14_get_vc_env(plat_spec)
    File "C:\Users\ykla\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\msvc.py", line 270, in _msvc14_get_vc_env
      raise distutils.errors.DistutilsPlatformError(
  distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  ----------------------------------------
WARNING: Discarding https://pypi.tuna.tsinghua.edu.cn/packages/64/7c/27367b38e6cc3e1f49f193deb761fe75cda9f95da37b67b422e62281fcac/cffi-1.12.2.tar.gz#sha256=e113878a446c6228669144ae8a56e268c91b7f1fafae927adc4879d9849e0ea7 (from https://pypi.tuna.tsinghua.edu.cn/simple/cffi/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement cffi==1.12.2 (from versions: 0.1, 0.2, 0.2.1, 0.3, 0.4, 0.4.1, 0.4.2, 0.5, 0.6, 0.7, 0.7.1, 0.7.2, 0.8, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.8.6, 0.9.0, 0.9.1, 0.9.2, 1.0.0, 1.0.1, 1.0.2.post2, 1.0.3, 1.1.0, 1.1.1, 1.1.2, 1.2.0.post1, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.2, 1.8.3, 1.9.0, 1.9.1, 1.10.0, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.11.4, 1.11.5, 1.12.0, 1.12.1, 1.12.2, 1.12.3, 1.13.0, 1.13.1, 1.13.2, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0rc1, 1.15.0rc2, 1.15.0)
ERROR: No matching distribution found for cffi==1.12.2
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant