Skip to content

Forum in maintenance, we will back soon 🙂

Error while Install...
 
Notifications
Clear all

Error while Install Beautifulsoup

2 Posts
2 Users
1 Reactions
500 Views
Lawal Ridwan
(@leksidenation)
Posts: 2
Active Member
Topic starter
 

I use the latest version of Python and i always get this error:

And i have try nothing work

C:\Users\Lekside Nation>pip install Beautifulsoup
Defaulting to user installation because normal site-packages is not writeable
Collecting Beautifulsoup
Downloading BeautifulSoup-3.2.2.tar.gz (32 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
╰─> [22 lines of output]
Traceback (most recent call last):
File "C:\Program Files\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Program Files\Python312\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:\Program Files\Python312\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\Lekside Nation\AppData\Local\Temp\pip-build-env-6ozd262a\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Lekside Nation\AppData\Local\Temp\pip-build-env-6ozd262a\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "C:\Users\Lekside Nation\AppData\Local\Temp\pip-build-env-6ozd262a\overlay\Lib\site-packages\setuptools\build_meta.py", line 480, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "C:\Users\Lekside Nation\AppData\Local\Temp\pip-build-env-6ozd262a\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 3
"You're trying to run a very old release of Beautiful Soup under Python 3. This will not work."<>"Please use Beautiful Soup 4, available through the pip package 'beautifulsoup4'."
^^
SyntaxError: invalid syntax
[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.

Free Online Web Tools
500+ Premium Chatgpt Prompt Templates
Prompt Jedi: 40,000+ Premium Chatgpt Prompts V3

 
Posted : 01/25/2024 10:05 am
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@leksidenation the error message explains what is wrong. You need to install BeautifulSoup4.

pip install beautifulsoup4

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 01/25/2024 7:17 pm
Share:
[the_ad_group id="312"]