-1

I'm not sure what's going on but no matter what I've tried, when I go to import bs4 the module is not found. I'm at a loss as to how I can get it to find the package.

Traceback (most recent call last):
  File "/Users/tonywinglau/Desktop/print('hello LeChristopher').py", line 1, in <module>
    import bs4 as bs
ImportError: No module named bs4
[Finished in 0.1s with exit code 1]
[cmd: ['/usr/bin/python2.7', "/Users/tonywinglau/Desktop/print('helloLeChristopher').py"]]
[dir:/Users/tonywinglau/Desktop]
[path:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin]
Tonechas
  • 13,398
  • 16
  • 46
  • 80

1 Answers1

0

In my global environment I cant say the issue was figured out but installing virtualenv worked. After creating a virutal environment via virtualenv myproject && pip install BeautifulSoup


import BeautifulSoup - runs without error.