Home > Enterprise >  Can´t find python libraries when trying to run a script from a batch file
Can´t find python libraries when trying to run a script from a batch file

Time:11-12

I am trying to run a python script from a batch file but it does not manage to find my installed libraries, the error i get is following:

error

And my batch file code looks like this:

@echo off
"C:\Users\juliu\AppData\Local\Programs\Python\Python310\python.exe" "C:\Users\juliu\Desktop\Evolo project\Website_scraper_system_2\blocket_scraper.py"
pause

I have checked similar posts on the community but does not quite understand the solution, can someone please provide a explanation to what is going on?

CodePudding user response:

I typed the console command where python and changed the file location to that and it seems to work.

  • Related