Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have python 3.1 installed, and I have added it to the system path too. Now I can open "cmd" and type python to start python, but whenever I try to open cmd in a specific directory by using (shift + right click -> open command prompt here), and type python, it says "command not found"!
How can I fix this?
Right click on my computer>got to properties>advanced settings>environmental variables>
choose path and add the installed python dirtory to that path as like below:
C:\WINDOWS\system32;C:\WINDOWS;C:\Python27
You need to set up the environment variables in Windows.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I had to format my laptop and python was installed, but there is something different now, before formatting when I open CMD and type python it runs without anything else, but now I have to change the directory to run python (cd C:\Users\Khaled\Desktop\python) to run, what can I do to run python without changing directory??
Install python in C: drive then set Environment Variable
by Right click on My COMPUTER icon then select properties
then got Advance system Setting if Window PC
then select Environment Variable and give path of your Python where you installed
for example if in C Drive
C:\python39\Scripts;C:\python39
python39 is my folder name of python installed directory which is in C drive
set user and sysem variable by click on edit option
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
When I want to execute Python in my command prompt, Windows always redirects me to the windows store to download Python. But I've already installed Python (python.org). So how can I adjust, that the command prompt uses the downloaded Python?
Just py instead of python or python3
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I would like to make my python file open on the "Windows Terminal" program instead of the python application that is opened by default. Is there a way to do this?
Use OS
import os
os.system("start cmd.exe /k python yourfile.py")
use the windows start command ie:
c:>start python
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I'm an ubuntu user. As you know, python promt is a very useful tool. And I want to replace my calculator app with it. What I want is a new terminal with python shell running on it to show up when I press a key combination. I can assign scripts to shortcut keys with compiz-config settings manager, but I can't get the result I want. 'gnome-terminal;python3;' launches a new terminal without python running on it. Looks like it starts python in background on tty7. So how can I get the result I want.
Make it:
gnome-terminal --command python3
As you have certainly guessed, --command is the parameter to use to execute a command inside gnome-terminal.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I came across this while trying to use a Python script that used ~Email to refer to the email column of a csv. When entering just ~email / ~Email into a prompt, it returns
host is down: /Network/Servers/my.server.domain/Volumes/files/teachers/Group
This happens in bash, zsh, iterm, terminal, and on other computers bound to our server. These other computers have no aliases or command line utilities set up. Can someone explain this to me and how I can disable it to be able to use this script?
OS 10.9.5
It's the home directory of an account named email. You can avoid this shell home directory-substitution by escaping the ~ (\~email) or single-quoting the string ('~email').