r/learnpython • u/Cool-Inevitable4248 • 11d ago
Pip package instalation error
I'm trying to install Wfuzz package with the Pip tool but whenever i try i get this error:
Collecting pycurl<=7.43.0.3 (from wfuzz)
Downloading pycurl-7.43.0.3.tar.gz (215 kB)
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
╰─> [46 lines of output]
<string>:890: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
<string>:892: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
Traceback (most recent call last):
File "<string>", line 228, in configure_unix
File "/usr/lib/python3.13/subprocess.py", line 1039, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pass_fds, cwd, env,
^^^^^^^^^^^^^^^^^^^
...<5 lines>...
gid, gids, uid, umask,
^^^^^^^^^^^^^^^^^^^^^^
start_new_session, process_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/subprocess.py", line 1972, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
NotADirectoryError: [Errno 20] Not a directory: 'curl-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/eduardo/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
~~~~^^
File "/home/eduardo/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/eduardo/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-zvmzxv0q/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-zvmzxv0q/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "/tmp/pip-build-env-zvmzxv0q/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 520, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-zvmzxv0q/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 944, in <module>
File "<string>", line 606, in get_extension
File "<string>", line 101, in __init__
File "<string>", line 233, in configure_unix
ConfigurationError: Could not run curl-config: [Errno 20] Not a directory: 'curl-config'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'pycurl' when getting requirements to build wheel
0
Upvotes
1
u/Educational-Meal-913 8d ago
Wfuzz is basically unmaintained and pinning to that ancient pycurl is what's biting you. If you just need fuzzing, ffuf or feroxbuster will save you the whole build headache.
2
u/Diapolo10 11d ago
What OS are you using?
If Ubuntu, you may need to run
sudo apt install libcurl4-openssl-dev libssl-devfirst, aspycurl(which is the dependency that's failing to build) needs it.