#πŸ”’ Finding out where the path of my script even is of python?

63 messages Β· Page 1 of 1 (latest)

maiden forge
#

so im trying to run an apllication called DeepFace

and i see now the owner of the application what we meant by calling the python command of the script

of python my_script.py

so i tried python deep_face.py

and it told me there is no directory of this script

and come to think of it i dont even know where the script is

i tried mutliple websites and attempts

dapper havenBOT
#

@maiden forge

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

coral wolf
#

well you can't just type python command in the terminal

#

terminal doesn't understand python

#

if you want to use the interactive shell
you have to type python first, or py

maiden forge
#

You are running it in windows instead of python. Run python command in your terminal and then run find command in python."

You are running find command - which is not a windows command. You should call python command in terminal and then call that find command.

the person who made the application said this

#

i didnt even understand what he said

#

so i googled it

#

how to run python command in your terminal

coral wolf
#

as for where your script is,
your file is where you saved it

coral wolf
#

you run python itself

maiden forge
#

so i followed this

#

i still dont understand?

#

do i say run python?

coral wolf
#

ok you first need to learn how to use a terminal

#

i would suggest reading on that, before trying to use python

some command you might want to know are:

maiden forge
#

is learning that going to take a very long time?

im really just using this for one application called DeepFace

coral wolf
#

cd, ls, pwd

coral wolf
#

but instead of buttons, you use text

maiden forge
#

well no i know terminal is also this confuses me

#

is it called terminal or powershell

coral wolf
#

think of it as using the file browser
but you don't have icons, you just read it

maiden forge
#

which one!!!

#

because that part is really confusing

#

but yes i know its like cmd

#

iv used cmd before

coral wolf
#

anyway

maiden forge
#

this just gets more confusing

#

i actually one time wanted to learn this

#

but its too much

#

and too much extra terms

#

anyway

#

i just want to use this application already

#

so what just type python?

coral wolf
#

terminal is just a text based tool to interact with your computer
it has different flavors:
powershell
cmd
sh
bash
...

maiden forge
#

ill give it a try

coral wolf
#

terminal is one of the most powerful tools you can learn on a computer

maiden forge
#

so now do i run my find command?

coral wolf
# maiden forge

now this is not terminal anymore
you ran python
and now you are inside python

#

think of it like double clicking an app and going inside it

maiden forge
#

okay ill give it a try again of running the find command

novel barn
#

The REPL, anyway. It's the interactive console for Python.

maiden forge
#

originally i used facecheckid

#

but their not free anymore and instead of a lifetime subscription or a monthly

#

their a crypto of credits that expire

#

like i get it they need to make money

#

but they didnt need to have it be the credits you pay for expire

#

oh and you cant even just pay as you go of a search you have to do either 150 credits which is 19 dollars or 500 credits which is 47 dollars

#

and the credits have an expiration

#

i think i still did something wrong?

#

@coral wolf are you still there?

#

@novel barn hello?

novel barn
#

The line starting with C:\Users\Manti is running in the terminal. That's standard OS stuff.
When you type python by itself and hit Enter, you start running the Python REPL, the interactive console.
Inside the REPL you can write python code. Like print("Hello"), hit Enter, and see the next line say Hello

So trying to run python deep_face.py inside the REPL throws that error because that line is not Python code.
You would need to run that in the terminal, instead.

From inside the REPL type exit() (including the parentheses) and hit Enter, to leave the REPL.

#

You'll know you're in the REPL if the line you're typing on starts with >>>

maiden forge
#

Python Algebra Solver

This python script will demonstrate how to solve a very simple algebra using sympy module
Requirement

Python 3.xx or Python 2.xx Sympy

pip install sympy

#Usage Call python following with the simple algebra problem

$ python Solver.py "5 = X - 2"

this is actually in the same regards to my thing

so okay will you help with this

i put in python which then brought me into python

dapper havenBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.