Ao tentar instalar curl_cffi:
pip install "git+https://github.com/lexiforest/curl_cffi.git"
Obtendo o erro:
(.venv) PS C:\Users\maaik\OneDrive\Desktop\foo> pip install "git+https://github.com/lexiforest/curl_cffi.git"
Collecting git+https://github.com/lexiforest/curl_cffi.git
Cloning https://github.com/lexiforest/curl_cffi.git to c:\users\maaik\appdata\local\temp\pip-req-build-2ua6lndo
Running command git clone --filter=blob:none --quiet https://github.com/lexiforest/curl_cffi.git 'C:\Users\maaik\AppData\Local\Temp\pip-req-build-2ua6lndo'
Resolved https://github.com/lexiforest/curl_cffi.git to commit 3ff5d8348eead43e92c395ba8742579b4e67e24d
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [64 lines of output]
Using ./lib64 to store libcurl-impersonate
Downloading libcurl-impersonate-chrome from https://github.com/lexiforest/curl-impersonate/releases/download/v0.8.2/libcurl-impersonate-v0.8.2.x86_64-win32.tar.gz...
Traceback (most recent call last):
File "C:\Users\maaik\OneDrive\Desktop\foo\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Users\maaik\OneDrive\Desktop\foo\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\maaik\OneDrive\Desktop\foo\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\maaik\AppData\Local\Temp\pip-build-env-s16g9_9k\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\maaik\AppData\Local\Temp\pip-build-env-s16g9_9k\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
self.run_setup()
File "C:\Users\maaik\AppData\Local\Temp\pip-build-env-s16g9_9k\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
exec(code, locals())
File "<string>", line 16, in <module>
File "C:\Users\maaik\AppData\Local\Temp\pip-build-env-s16g9_9k\overlay\Lib\site-packages\setuptools\__init__.py", line 117, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\maaik\AppData\Local\Temp\pip-build-env-s16g9_9k\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 148, in setup
_setup_distribution = dist = klass(attrs)
^^^^^^^^^^^^
File "C:\Users\maaik\AppData\Local\Temp\pip-build-env-s16g9_9k\overlay\Lib\site-packages\setuptools\dist.py", line 319, in __init__
_Distribution.__init__(self, dist_attrs)
File "C:\Users\maaik\AppData\Local\Temp\pip-build-env-s16g9_9k\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 290, in __init__
self.finalize_options()
File "C:\Users\maaik\AppData\Local\Temp\pip-build-env-s16g9_9k\overlay\Lib\site-packages\setuptools\dist.py", line 681, in finalize_options
ep(self)
File "C:\Users\maaik\AppData\Local\Temp\pip-build-env-s16g9_9k\overlay\Lib\site-packages\setuptools\dist.py", line 701, in _finalize_setup_keywords
ep.load()(self, ep.name, value)
File "C:\Users\maaik\AppData\Local\Temp\pip-build-env-s16g9_9k\overlay\Lib\site-packages\cffi\setuptools_ext.py", line 216, in cffi_modules
add_cffi_module(dist, cffi_module)
File "C:\Users\maaik\AppData\Local\Temp\pip-build-env-s16g9_9k\overlay\Lib\site-packages\cffi\setuptools_ext.py", line 49, in add_cffi_module
execfile(build_file_name, mod_vars)
File "C:\Users\maaik\AppData\Local\Temp\pip-build-env-s16g9_9k\overlay\Lib\site-packages\cffi\setuptools_ext.py", line 25, in execfile
exec(code, glob, glob)
File "scripts/build.py", line 114, in <module>
download_libcurl()
File "scripts/build.py", line 69, in download_libcurl
urlretrieve(url, file)
File "C:\Users\maaik\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 240, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
^^^^^^^^^^^^^^^^^^
File "C:\Users\maaik\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 215, in urlopen
return opener.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\maaik\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 521, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\maaik\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 630, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "C:\Users\maaik\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 559, in error
return self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\maaik\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 492, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "C:\Users\maaik\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 639, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Este pacote não suporta windows, o sistema operacional no qual você digitou o comando. Ele depende de uma biblioteca lançada somente para linux e macos.
Você pode tentar o Windows Subsystem para Linux ou Docker/Rancher/colima/podman.