my terminal is running on python 3.8 and I don't have the terminal when I open the terminal it opens like below:
here is the image of terminal right after i open it
what should I do to get rid of this problem and go to normal terminal?
however I think it is because a package I installed on atom named build-python please help me.I think it is a child process but I couldn't kill it
edit : i forgot to say that when I press Ctrl+D in order to exit the python on terminal I get following screen:
here is the image
Related
I use the following command to run the python program in the terminal
conda run -n qc --no-capture-output --live-stream python "g:/VS Code Program/pythonproject/test.py"
The content in test.py is just print(1).
When I hit Enter after typing a command, The terminal first clears the screen immediately, then displays the number 1, and then clears the screen again and returns to the state before the command was entered.
So, what is the reason for this phenomenon? How can I keep the output and the command I typed before without cleaning the screen?
Could someone help me? Thank you in advance here.
OS: Windows 11
Conda version: 4.11.0
i have a python script and when I run it in ubuntu terminal it makes my robot to go forward in gazebo simulator. I also have some codes which I have written in spyder. I want to run that gazebo commands from my spyder ipython console, but when I'm writing the codes that I ran successfully in standard terminal, spyder gives me invalid syntax error. actually I want to know how I can run a gazebo python code in my spyder console.
file:///home/niloofar/Desktop/Screenshot%20from%202019-11-03%2021-07-43.png
This is the picture of terminal which I can run my code in :
file:///home/niloofar/Desktop/Screenshot%20from%202019-11-03%2021-06-31.png
I have a rather small Pygame based python script and I just bought a Mac so I'm trying to run my script on here. Everything has been installed correctly (Checking by typing 'import Pygame') into python terminal as-well as running a basic hello world program. However, when I try running this script, IDLE gets brought to the front but nothing happens from there. (The script is supposed to pop-up a new window). Is this a problem with my installations or my code? (Code works on windows setup).
You could try to run the script again on a windows computer to see if you forgot to save some changes or if the file got corrupted somehow. You could also use bootcamp to install Windows on your mac since you could have one windows version on your mac for coding purposes and the regular mac OS for other stuff if you like.
you can execute it by left clicking in your script and select open with python launcher
I am using Atom on Windows 10. While setting up Atom on my computer, I created a folder called "beyond basics". Then I created a python file. I installed platform io on Atom. i got a "+" icon on screen. upon clicking that i got a command line. I am trying to execute on that by writing python filename but I am getting an error. Any help is appreciated.
python3 myfile.py
Try typing myfile.py without the python prefix. It may work, as it works for me on Windows 10. Your bubble is covering up an error message that could help use debug. Can you add an edit and tell us the error message? Until then, just try the command without the python prefix.
You should also save before running, as was commented by Denis Fetinin.
If it still doesn't work, try addding python to the env variables. It's a simple process that you can follow here.
It seems that the spyder has removed python console, but I got a program can only be run by python console, what can I do? or is there any thing I am wrong?
I got some codes from github, and it needs ADB driver for Android, after I installed ADB, I can run the program in cmd using python wechat_jump_auto.py, but cannot run in spyder with ipython.
In Spyder3 installed in Windows OS, we can add the path to adb using Tools --> Current user environment variables....
Here, we can add the path to adb.exe file by appending it to the path variable. Then, we need to restart Spyder3. Then you will be able to directly run your script with access to adb.exe from Spyder3 IPython console or simply by clicking Run button.
Just came across the same problem as you recently.
In fact, it seems that program using ADB tools just cannot run in Spyder even by python console (my Spyder IDE is equipped with both Ipython console and Python console).
One practical way to solve this problem is to run your code in cmd.
Open your cmd window and do something like this:
python "xxx(path)\xxxx.py(file name)"
In my case, it looks like this:
example image
Hit Enter, and hopefully your code will run successfully.
If it still cannot run, maybe you haven't set your environment variables correctly.
Hope this can solve your problem. Good luck :)