Score:0

Trying to convert python to terminal command

eu flag

Trying to create a mouse mover that I can call anywhere using command prompt so my computer doesn't shut off.

I've included the following at the top of my code:

#!/usr/bin/env python3
import os

# use 0o (zero + "o" before 755 to use octal)   
os.chmod('/path/to/file.py', 0o755)

but when i call ./file.py, it returns the following error:

/usr/bin/env: ‘python3’: No such file or directory

Not sure how to solve this been at it for while.

Score:0
cn flag

In your terminal do you get any output from

which python3

If not, the you'll have you to install it.

sudo apt install python3

Alternatively if you were developing the code in a virtual environment, you'd want to activate it first, before running your program on the command line.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.