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
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'm using Windows 10 64 bit. When I open .py files using the command prompt it opens the file in pycharm. I would like to open the files in python. Is there an alternative command I can use to open the file with python? Or is there some setting i can alter to make python the default app when I open .py files using command prompt? Cheers
It's because you may have made PyCharm your default program to open .py files. You just need to change default app for file type. There's a option in windows for doing this :
Just search "Choose default apps by file type" in windows search bar. And choose python (or any suitable program) as default app for .py files.
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 3 years ago.
Improve this question
I have installed sq-lite program in my local machine & set environment variables also.
After that I am able to use "python manage.py dbshell" in command line but when using same command in visual code it showing error "CommandError: You appear not to have the 'sqlite3' program installed or on your path."
I have attached screenshot also for reference.
In environment variables I have added "c:\sqlite" into path variable.
dbshell_error_screenshot
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').
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.