I tried to install beautifulsoup. I get such an error:
<-- snip -->
raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /Users/Sam/.pydistutils.cfg, line: 1
'install_lib = ~/Library/Python/$py_version_short/site-packages\n'
I get an similar error as I run my Python code in vim by: :!python %
You can test if a module is installed like so:
$ python
>>> import modulename
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With