Forums

Installing modules with Bash Console

Hi!

I'm new with PythonAnywhere (and pretty new to Python in general). I recently made a script that outputs a csv file and a jupyter notebook that scrapes a website and puts the information into the csv. I downloaded the jupyter notebook as a .py file and put the file on a schedule to scrape the website but it does not work. I think it is because the modules (BeautifulSoup, requests, csv, time, datetime) are not able to be imported. To my understanding, if I install them in a Bash console then all of my python scripts will recognize them as built in but I can't seem to get the correct syntax for installing them in Bash. Can anyone help me do that? For example, how would I install 'requests;' in Bash? Any help is appreciated, thanks!

Take a look at https://help.pythonanywhere.com/pages/InstallingNewModules