I'm trying to run a python file, but it asks to be run as admin how do I do that?
I'm trying to run a python file, but it asks to be run as admin how do I do that?
Run the Command Prompt or PowerShell with the Run As Administrator option.
Run the command normally:
> python seu_script.py
In Terminal, use:
> sudo python seu_script.py
That's right
python python_script.py
on windows
and
su
bash
chmod +x python_scrypt.py
sudo python python_script.py
in linux / osx
To install python modules (let's assume, google tensorflow, for example), you have to use as commands:
pip install myPythonExtenson
this for python 2
for python 3 you should run
pip3 install myPythonExtension