I installed pipenv and then used pipenv install beautifulsoup4. My understanding is that this should have created a pipfile and a virtual env. So I started up pipenv shell. My pipfile is there, with Beautiful Soup there. Next thing I tried to do was pipenv install selenium. I wrote this really short script:
from bs4 import BeautifulSoup
from selenium import webdriver
driver = webdriver.Firefox()
profile = 'https://www.linkedin.com/in/user-profile-name'
driver.get(profile)
html = driver.page_source
soup = BeautifulSoup(html)
print(soup)
I tried running it and got this error:
Traceback (most recent call last):
  File "LiScrape.py", line 2, in <module>
    from selenium import webdriver
ModuleNotFoundError: No module named 'selenium'
I tried running python3 in the shell and just doing import selenium to see if it would let me check the version. Again, I got the ModuleNotFoundError.
What am I doing wrong with selenium that I didn't do wrong with beautiful soup??
 
     
    