cmd

How to create django project

How to create django project Question: What commands should I write in cmd. When I write: django-admin startproject myproject, it does not create a config folder in my project. What do I miss? Asked By: Timur || Source Answers: Try using "$ django-admin startproject myproject", the myproject should be the folder that contains your project. …

Total answers: 1

Open any program from cmd in python

Open any program from cmd in python Question: I want to open a program in Python in a path error in cmd: The system cannot find the file steam.exe. import os os.system(‘start steam.exe "D:Program Files (x86)Steam"’)“` Asked By: Mohammad Garousi || Source Answers: use subprocess: import subprocess subprocess.call([‘D:Program Files (x86)Steam\steam.exe’]) Answered By: Zack Walton

Total answers: 1

Run CMD command in python script in ANOTHER Shell

Run CMD command in python script in ANOTHER Shell Question: I am running a pogram "xxx" in the windows cmd shell. With a python script I want to check whether this specific process "xxx" is frozen or not. If so, it should reopen the process with os.system(r’xxx.bat’) but then the python script does no check …

Total answers: 2

Python output don't show in CMD

Python output don't show in CMD Question: If I run this script in CMD (or Git Bash – doesn’t matter) using python name.py, output will show only hello and not the return value. Why is that? I tried to reinstall python, add PATH, uninstall Anaconda and install only python from official website. Code is working …

Total answers: 1

How to run scripts in python?

How to run scripts in python without using subprocess module? (I don’t have that module) Question: How to run cmd codes like pip install matplotlib in python? I tried to use Stash, but it costs too much time and it cannot be run if I have a UIView. So, can someone help me? Asked By: …

Total answers: 1

Python script – API call fails due to JSON arguments

Python script – API call fails due to JSON arguments Question: I am trying to pull reports through a (shadowserver) API – doc here: The python script is written by ShadowServer and I have tested it with the simple usage example they are providing: $ ./call-api.py test/ping ‘{}’ {"pong":"2020-10-26 23:06:37"} Thus far, everything works fine. …

Total answers: 1

Python script pausing in cmd

Python script pausing in cmd Question: I am running a few Python scripts at the same time. They are running in windows CMD. I never knew that you can externally pause a Python script running in CMD. If I hold the mouse button for a few seconds the script pauses and not just the output …

Total answers: 2

My program freezes until the CMD command finishes ( Python 3 )

My program freezes until the CMD command finishes ( Python 3 ) Question: when I run my program and press a button, the function it has to do is performed, but the problem is that I cannot use the program until the function of the button I press has finished, it stays in "program does …

Total answers: 2

Python sendgrid library error when run from command line

Python sendgrid library error when run from command line Question: I have a sendgrid account set up and I can use it to send emails through python. When I run it in my spyder IDE it works great, but when run through the windows CMD i get <urlopen error unknown url type: https>. I tried …

Total answers: 1