>following directions from Hello! Python. When I type in *sudo python
>setup.py install *I get an error as shown below.
>
>Traceback (most recent call last):
> File "setup.py", line 1, in <module>
> from setuptools import (
>ImportError: No module named setuptools
>
>Any suggestions on how to get around this would be greatly appreciated. Is
>there something I need to load prior to this to get this to work?
I strongly suggest you don't do it this way.
Using sudo and the default python install places the module in the system
python area. On almost all platforms this is a mistake: it may interfere with
the OS supplied modules, and may in turn be damaged when OS supplied packagaes
are installed.
Instead, avoid sudo entirely and either:
install the module with --user, which installs in your home directory
Yes, this still needs setuptools - not directly solving your problem
here, just describing a better install process.
or
make a virtualenv (again, in your home directory) and install in it
Python3 ships with pip and virtualenv. I strongly recommend starting with
Python 3 anyway if you're new to Python. The OS Python is python 2.
So:
install python 3
install BS4 in your home directory
avoid sudo and interference in the system python libraries
Cheers,
Cameron Simpson <
c...@zip.com.au>