Run with Python 3 Still Using Python 2

python

#1

When I run this using the Run Menu and Use Python 3 it seems to run it in Python 2.

If I run it in the Terminal it works as it should.

Curious if there is a setting that I need to use.

import bs4 as bs
import urllib.request

sauce = urllib.request.urlopen(‘http://checkip.dyndns.com/’).read()

soup = bs.BeautifulSoup(sauce,‘lxml’)

print(soup.body.text)


#2

Can you post a screenshot? You should select the Python 3 runner.


#3

Here it is.


#4

Any ideas on why it is forcing the Python 2?


#5

Does anyone know? I will not post again. I was just trying to get an answer.

Any ideas on why it is forcing the Python 2 runner?