English 中文(简体)
磁力是没有的,但有助于在类似档案的物体上进行卷宗型探测。
原标题:libmagic is unavailable but assists in filetype detection on file-like objects

我在IDLE中书写代码。 我想通过“无结构的URLLoader”获取数据,但我不断发现错误。

from langchain_community.document_loaders import UnstructuredURLLoader
from langchain_community.document_loaders import UnstructuredURLLoader
urls = [
    "https://www.understandingwar.org/backgrounder/russian-offensive-campaign-assessment-february-8-2023",
    "https://www.understandingwar.org/backgrounder/russian-offensive-campaign-assessment-february-9-2023",
]
loader = UnstructuredURLLoader(urls=urls)
data = loader.load()

Error is -

libmagic is unavailable but assists in filetype detection on file-like objects. Please consider installing libmagic for better results.
Error fetching or processing https://www.understandingwar.org/backgrounder/russian-offensive-campaign-assessment-february-8-2023, exception: Invalid file. The FileType.UNK file type is not supported in partition.
libmagic is unavailable but assists in filetype detection on file-like objects. Please consider installing libmagic for better results.
Error fetching or processing https://www.understandingwar.org/backgrounder/russian-offensive-campaign-assessment-february-9-2023, exception: Invalid file. The FileType.UNK file type is not supported in partition.

I followed up this solution too -> UnstructuredURLLoader not able to see libmagic but again getting error.

When i try to pip install libmagic I get error -

C:Users91783>pip install python-libmagic
Defaulting to user installation because normal site-packages is not writeable
Collecting python-libmagic
  Downloading python-libmagic-0.4.0.tar.gz (3.6 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting cffi==1.7.0 (from python-libmagic)
  Downloading cffi-1.7.0.tar.gz (400 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 400.3/400.3 kB 2.3 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pycparser (from cffi==1.7.0->python-libmagic)
  Downloading pycparser-2.21-py2.py3-none-any.whl.metadata (1.1 kB)
Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB ? eta 0:00:00
Building wheels for collected packages: python-libmagic, cffi
  Building wheel for python-libmagic (pyproject.toml) ... done
  Created wheel for python-libmagic: filename=python_libmagic-0.4.0-py3-none-any.whl size=4118 sha256=7d4a067a629302bb6b1f70a524e89759f2b4f814c7420b81e3dcc649516863c4
  Stored in directory: c:users91783appdatalocalpipcachewheelsfb97afe63471763178fecbba59de7350c7c8c4967d07c4144caac20b
  Building wheel for cffi (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for cffi (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [215 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating buildlib.win-amd64-cpython-312
      creating buildlib.win-amd64-cpython-312cffi
      copying cffiapi.py -> buildlib.win-amd64-cpython-312cffi
      copying cffiackend_ctypes.py -> buildlib.win-amd64-cpython-312cffi
      copying cfficffi_opcode.py -> buildlib.win-amd64-cpython-312cffi
      copying cfficommontypes.py -> buildlib.win-amd64-cpython-312cffi
      copying cfficparser.py -> buildlib.win-amd64-cpython-312cffi
      copying cffiffiplatform.py -> buildlib.win-amd64-cpython-312cffi
      copying cffilock.py -> buildlib.win-amd64-cpython-312cffi
      copying cffimodel.py -> buildlib.win-amd64-cpython-312cffi
      copying cffi
ecompiler.py -> buildlib.win-amd64-cpython-312cffi
      copying cffisetuptools_ext.py -> buildlib.win-amd64-cpython-312cffi
      copying cffivengine_cpy.py -> buildlib.win-amd64-cpython-312cffi
      copying cffivengine_gen.py -> buildlib.win-amd64-cpython-312cffi
      copying cffiverifier.py -> buildlib.win-amd64-cpython-312cffi
      copying cffi\__init__.py -> buildlib.win-amd64-cpython-312cffi
      copying cffi\_cffi_include.h -> buildlib.win-amd64-cpython-312cffi
      copying cffiparse_c_type.h -> buildlib.win-amd64-cpython-312cffi
      copying cffi\_embedding.h -> buildlib.win-amd64-cpython-312cffi
      running build_ext
      building  _cffi_backend  extension
      creating build	emp.win-amd64-cpython-312
      creating build	emp.win-amd64-cpython-312Release
      creating build	emp.win-amd64-cpython-312Releasec
      creating build	emp.win-amd64-cpython-312Releaseclibffi_msvc
      "C:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.39.33519inHostX86x64cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ic/libffi_msvc "-IC:Program FilesPython312include" "-IC:Program FilesPython312Include" "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.39.33519include" "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCAuxiliaryVSinclude" "-IC:Program Files (x86)Windows Kits10include10.0.22621.0ucrt" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\um" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\shared" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\winrt" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\cppwinrt" "-IC:Program Files (x86)Windows KitsNETFXSDK4.8includeum" /Tcc/_cffi_backend.c /Fobuild	emp.win-amd64-cpython-312Releasec/_cffi_backend.obj
      _cffi_backend.c
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1cminibuffer.h(66): warning C4996:  PyObject_AsReadBuffer : deprecated in 3.0
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1cfile_emulator.h(54): warning C4090:  = : different  const  qualifiers
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1cwchar_helper.h(83): warning C4013:  PyUnicode_AS_UNICODE  undefined; assuming extern returning int
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1cwchar_helper.h(84): warning C4013:  PyUnicode_GET_SIZE  undefined; assuming extern returning int
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1cwchar_helper.h(83): warning C4047:  initializing :  Py_UNICODE *  differs in levels of indirection from  int 
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1cwchar_helper.h(118): warning C4047:  initializing :  Py_UNICODE *  differs in levels of indirection from  int 
      c/_cffi_backend.c(315): warning C4267:  initializing : conversion from  size_t  to  int , possible loss of data
      c/_cffi_backend.c(316): warning C4267:  initializing : conversion from  size_t  to  int , possible loss of data
      c/_cffi_backend.c(352): error C2106:  = : left operand must be l-value
      c/_cffi_backend.c(355): error C2106:  = : left operand must be l-value
      c/_cffi_backend.c(938): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(947): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(957): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(993): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(1007): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(1385): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(1386): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(1388): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(1398): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(1399): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(1401): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(1420): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(1515): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(1517): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(1537): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(1540): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(1865): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(1870): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(1884): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(1933): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(1987): warning C4244:  return : conversion from  Py_hash_t  to  long , possible loss of data
      c/_cffi_backend.c(3264): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(3358): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(3458): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(3649): warning C4996:  Py_FileSystemDefaultEncoding : deprecated in 3.12
      c/_cffi_backend.c(3792): error C2061: syntax error: identifier  ssize_t 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_c 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_s 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_i 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_l 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_ll 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_sc 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_uc 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_us 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_ui 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_ul 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_ull 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_f 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_d 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_ld 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_wc 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_b 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_i8 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_u8 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_i16 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_u16 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_i32 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_u32 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_i64 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_u64 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_il8 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_ul8 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_il16 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_ul16 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_il32 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_ul32 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_il64 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_ul64 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_if8 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_uf8 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_if16 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_uf16 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_if32 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_uf32 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_if64 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_uf64 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_ip 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_up 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_im 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_um 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_pd 
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_sz 
      c/_cffi_backend.c(3804): error C2065:  ssize_t : undeclared identifier
      c/_cffi_backend.c(3804): error C2037: left of  y  specifies undefined struct/union  aligncheck_ssz 
      c/_cffi_backend.c(3815): error C2059: syntax error:  for 
      c/_cffi_backend.c(3815): error C2143: syntax error: missing  {  before  ++ 
      c/_cffi_backend.c(3815): error C2059: syntax error:  ++ 
      c/_cffi_backend.c(3815): error C2059: syntax error:  ) 
      c/_cffi_backend.c(3829): error C2059: syntax error:  if 
      c/_cffi_backend.c(3838): error C2059: syntax error:  else 
      c/_cffi_backend.c(3855): error C2059: syntax error:  else 
      c/_cffi_backend.c(3865): error C2099: initializer is not a constant
      c/_cffi_backend.c(3866): error C2040:  td :  int  differs in levels of indirection from  CTypeDescrObject * 
      c/_cffi_backend.c(3867): error C2059: syntax error:  if 
      c/_cffi_backend.c(3870): error C2143: syntax error: missing  )  before  -> 
      c/_cffi_backend.c(3870): error C2143: syntax error: missing  {  before  -> 
      c/_cffi_backend.c(3870): error C2059: syntax error:  -> 
      c/_cffi_backend.c(3870): error C2059: syntax error:  ) 
      c/_cffi_backend.c(3871): error C2143: syntax error: missing  {  before  -> 
      c/_cffi_backend.c(3871): error C2059: syntax error:  -> 
      c/_cffi_backend.c(3872): error C2143: syntax error: missing  {  before  -> 
      c/_cffi_backend.c(3872): error C2059: syntax error:  -> 
      c/_cffi_backend.c(3873): error C2143: syntax error: missing  {  before  -> 
      c/_cffi_backend.c(3873): error C2059: syntax error:  -> 
      c/_cffi_backend.c(3874): error C2143: syntax error: missing  {  before  -> 
      c/_cffi_backend.c(3874): error C2059: syntax error:  -> 
      c/_cffi_backend.c(3875): error C2059: syntax error:  if 
      c/_cffi_backend.c(3879): error C2059: syntax error:  else 
      c/_cffi_backend.c(3883): error C2143: syntax error: missing  {  before  -> 
      c/_cffi_backend.c(3883): error C2059: syntax error:  -> 
      c/_cffi_backend.c(3884): error C2040:  unique_key :  int [0]  differs in levels of indirection from  const void *[1] 
      c/_cffi_backend.c(3885): error C2059: syntax error:  return 
      c/_cffi_backend.c(3887): error C2143: syntax error: missing  {  before  : 
      c/_cffi_backend.c(3887): error C2059: syntax error:  : 
      c/_cffi_backend.c(3892): error C2059: syntax error:  return 
      c/_cffi_backend.c(3893): error C2059: syntax error:  } 
      c/_cffi_backend.c(4027): warning C4267:  = : conversion from  size_t  to  int , possible loss of data
      c/_cffi_backend.c(4018): warning C4267:  initializing : conversion from  size_t  to  int , possible loss of data
      c/_cffi_backend.c(4039): warning C4267:  initializing : conversion from  size_t  to  int , possible loss of data
      c/_cffi_backend.c(4251): warning C4013:  PyUnicode_GetSize  undefined; assuming extern returning int
      c/_cffi_backend.c(4384): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(4425): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(4433): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(4627): warning C4244:  = : conversion from  Py_ssize_t  to  unsigned short , possible loss of data
      c/_cffi_backend.c(4742): warning C4267:  function : conversion from  size_t  to  int , possible loss of data
      c/_cffi_backend.c(4746): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(4762): warning C4267:  function : conversion from  size_t  to  int , possible loss of data
      c/_cffi_backend.c(4775): warning C4267:  function : conversion from  size_t  to  int , possible loss of data
      c/_cffi_backend.c(4804): warning C4244:  function : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(4854): warning C4244:  function : conversion from  Py_ssize_t  to  unsigned int , possible loss of data
      c/_cffi_backend.c(4939): warning C4244:  function : conversion from  Py_ssize_t  to  long , possible loss of data
      c/_cffi_backend.c(5214): warning C4996:  PyEval_InitThreads : deprecated in 3.9
      c/_cffi_backend.c(5364): warning C4267:  = : conversion from  size_t  to  int , possible loss of data
      c/_cffi_backend.c(5475): error C2065:  ssize_t : undeclared identifier
      c/_cffi_backend.c(5475): error C2146: syntax error: missing  ;  before identifier  index 
      c/_cffi_backend.c(5475): error C2065:  index : undeclared identifier
      c/_cffi_backend.c(5475): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      c/_cffi_backend.c(5476): error C2065:  index : undeclared identifier
      c/_cffi_backend.c(5490): error C2065:  index : undeclared identifier
      c/_cffi_backend.c(5491): error C2065:  index : undeclared identifier
      c/_cffi_backend.c(6427): error C2065:  b_new_primitive_type : undeclared identifier
      c/_cffi_backend.c(6425): error C2099: initializer is not a constant
      c/_cffi_backend.c(6427): warning C4047:  initializing :  PyCFunction  differs in levels of indirection from  int 
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1cparse_c_type.c(217): warning C4267:  return : conversion from  size_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1cparse_c_type.c(286): warning C4267:  = : conversion from  size_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1cparse_c_type.c(340): warning C4244:  = : conversion from  intptr_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1cparse_c_type.c(444): warning C4244:  return : conversion from  intptr_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1c
ealize_c_type.c(425): warning C4244:  function : conversion from  intptr_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1c
ealize_c_type.c(430): warning C4244:  function : conversion from  intptr_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1c
ealize_c_type.c(448): warning C4244:  function : conversion from  intptr_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1c
ealize_c_type.c(460): warning C4244:  function : conversion from  intptr_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1c
ealize_c_type.c(559): warning C4244:  function : conversion from  intptr_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1c
ealize_c_type.c(621): warning C4244:  function : conversion from  intptr_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1c
ealize_c_type.c(670): warning C4244:  function : conversion from  intptr_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1c
ealize_c_type.c(723): warning C4244:  function : conversion from  intptr_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1cffi_obj.c(191): warning C4090:  initializing : different  const  qualifiers
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1clib_obj.c(126): warning C4244:  initializing : conversion from  intptr_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1clib_obj.c(129): warning C4090:  initializing : different  const  qualifiers
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1clib_obj.c(298): warning C4244:  function : conversion from  intptr_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1clib_obj.c(342): warning C4244:  function : conversion from  intptr_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1clib_obj.c(368): warning C4244:  function : conversion from  intptr_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1clib_obj.c(389): warning C4244:  function : conversion from  intptr_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1clib_obj.c(403): warning C4244:  function : conversion from  intptr_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1clib_obj.c(208): warning C4090:  initializing : different  const  qualifiers
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1clib_obj.c(506): warning C4090:  = : different  const  qualifiers
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccdlopen.c(54): warning C4996:  Py_FileSystemDefaultEncoding : deprecated in 3.12
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccdlopen.c(190): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccdlopen.c(235): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccdlopen.c(267): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccdlopen.c(268): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccdlopen.c(280): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccdlopen.c(281): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccdlopen.c(301): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccdlopen.c(321): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccdlopen.c(322): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccdlopen.c(327): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccdlopen.c(347): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccdlopen.c(351): warning C4244:  = : conversion from  Py_ssize_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccall_python.c(20): error C2037: left of  builtins  specifies undefined struct/union  _is 
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccall_python.c(73): warning C4090:  = : different  const  qualifiers
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccall_python.c(90): warning C4244:  function : conversion from  intptr_t  to  int , possible loss of data
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccall_python.c(160): error C2037: left of  modules  specifies undefined struct/union  _is 
      C:Users91783AppDataLocalTemppip-install-mmkaawticffi_e0cc08400b1f4290808401657b0630d1ccall_python.c(235): error C2037: left of  modules  specifies undefined struct/union  _is 
      error: command  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe  failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cffi
Successfully built python-libmagic
Failed to build cffi
ERROR: Could not build wheels for cffi, which is required to install pyproject.toml-based projects


如何使用无结构的URLLoader?

问题回答

Try to install this two and see pip install libmagic pip install python-magic-bin





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签