SpaceBishop@lemmy.ziptoMildly Infuriating@lemmy.world•Facebook now wants to write your posts for you with AI.English
223·
8 months agoDon’t let trolls bring you down. Some people just are not happy without making someone else sad.
Don’t let trolls bring you down. Some people just are not happy without making someone else sad.
While I personally do appreciate the level of detail and amount of options provided in this reply, the more straightforward and longer-term solution is to eat the rich.
I am no expert, but I have used Python in a professional environment, and helped on board a Python newbie to build out his first project.
It would be helpful to know what your environment looks like (what OS you are running, Python version, terminal interface – are you running cmd, powershell, terminal) and which steps prompts the reported error messages.
Starting from the first time running Python using a Windows computer, the first steps should be
Launch Powershell as admin and type in the following commands:
set-executionpolicy remotesigned
winget install python
mkdir python
cd python
python -m venv scraper
.\scraper\Scripts\activate
Following that you should be able to use
pip
to install more modules or packages. I have Visual Studio Code as my IDE, and that means from there I can also runcode
to open the text editor to write whatever code I intend to run. Be sure to save it to C:\Users\youruseraccount\python If your scripts are saved to that folder, you can run them from powershell by just typing in their filename. Any time you run scripts, open powershell and typecd python
and then.\scraper\Scripts\activate
Hit enter, then type in the name of the script you want to run.This information dump is not the most detailed, but it should get you to the point that you can run your scripts.