Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
43 views

How to run a program with a specific version of Python from the terminal on Windows?

I have several versions of Python installed on my system, and a software I use requires using Python3.11, the problem is that the most recent version of Python is the one Windows defaults to, i.e. if ...
Sergio's user avatar
  • 1
1 vote
1 answer
161 views

How do I create a pty without a shell?

Backstory: I have a CLI Python application. I want to be able to debug it without interfering with the CLI of the main application. The Python debugger allows you to specify an alternative stdin/...
FrederikVds's user avatar
0 votes
0 answers
68 views

Unsure what happening with my terminal but I'm getting a weird response

Whenever I run a python file, (vs code) or even open my terminal on mac I get a warning saying. /Users/ABC/.zshrc:1: command not found: “alias /Users/ABC/.zshrc:2: command not found: “alias /Users/ABC/...
Angus_U22's user avatar
1 vote
1 answer
95 views

How to call ifcconvert from the terminal

I want to convert icf files to objs, to that effect I want to use this tool: https://ifcopenshell.org/downloads.html I installed it through python like this: pip install ifcopenshell However, I am ...
Makogan's user avatar
  • 157
1 vote
0 answers
354 views

How to set the VScode terminal so it recognizes the python shebang of the scripts and run them with the proper python version?

By default, we must choose the python version here: I know the python shebangs (e.g. #!python3.9) are made for the launcher. But is there a way for the terminal to automatically launch the script ...
JinSnow's user avatar
  • 844
7 votes
3 answers
13k views

Why pip throwing an error when installing numpy in Termux?

I'm installing numpy in Termux. When I run pip install numpy --no-cache-dir, the error was: File "/data/data/com.termux/files/usr/tmp/pip-install-ywfqxfk8/numpy_cf9d5c136bf14c7f9ce4181f190e4581/...
Vad Sim's user avatar
  • 246
0 votes
1 answer
4k views

How to put colors in terminal?

I would like to use rgb(a) hex codes to display colors on the terminal. I intend to make some kind of program that can render colors inside brackets, like: [#FFFFFF]this is white text
slim station's user avatar
1 vote
1 answer
2k views

PATH still affected by Anaconda after uninstalling

When I run echo $PATH in terminal (macOS), it returns /opt/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin. I have uninstalled anaconda and both my opt directory and .bash_profile are empty....
Mahmoud Hosny's user avatar
3 votes
1 answer
3k views

How to schedule a script to run automatically even if Mac is sleeping?

I'm really struggling with this. Basically I want to run a Python script every 3 hours on my Mac. Even if I'm not using the Mac. So even if the Mac is asleep I want it to wake up and run the script. ...
kitchen800's user avatar
0 votes
0 answers
170 views

Poweshell Banner Hidden [duplicate]

Is there a way to hide this PowerShell branding that is shown in the VSCode terminal? Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Try the new cross-platform ...
Wasay Beats's user avatar
0 votes
1 answer
817 views

How to kill/ exit a running kali linux command while python script is running

I'm running a python script that prints out commands on the terminal (kali linux) to ultimately disconnect my own device from my wifi after x amount of minutes/seconds etc. I can get the commands part ...
sidereal's user avatar
1 vote
1 answer
59 views

What makes a new command line (i.e. user@machine:~/directory$) appear in the terminal?

I am writing a Python program and when I interrupt this program, it unfortunately prints lines after the new dollar line has been printed. It looks something like this: [INFO]: Program finishing... ...
Simayy's user avatar
  • 13
0 votes
0 answers
966 views

Everything disappeared from ubuntu desktop

I am posting this question from my phone as I am not able to access taskbar or any apps in the laptop(ubuntu 16.04, 64-bit). After googling it I found this command mv ~/.cache/compizconfig-1 ~/.cache/...
Mandar Remane's user avatar
0 votes
1 answer
586 views

my terminal is not recognizing my flask command after i installed flask

I ran into a problem with the terminal, it didn't recognize my flask command! the whole issue started with WARNING: The script isort is installed in '/Users/bigdad/Library/Python/3.8/bin' which is not ...
afbigdad's user avatar
2 votes
0 answers
3k views

Firefox garbage collection and RAM/memory cleanup

Firefox has a feature to do garbage collection and memory cleanup: On the about:memory page, Free memory > GC/CC/Minimize memory usage. Is it possible to trigger them externally, e.g. via a ...
david's user avatar
  • 337
1 vote
1 answer
411 views

bash: command not found error

I'm new to terminal, and am just following a beginners python course, I've saved an "example.py" file and im trying to open it but get this error? also where it says "pc-79-59" that used to say the ...
mq1998's user avatar
  • 113
0 votes
0 answers
266 views

error msg when open linux terminal

I installed a virtualenv in the other day using pip and its not working properly, also when i start the terminal it opens whit that msg on the top > bash: /usr/bin/python: Arquivo ou diretório ...
Rossi Alex's user avatar
1 vote
0 answers
49 views

Powershell commands suddenly stopped working

After I woke my pc up from sleep I tried running my Django server but nothing happens when I write the command. I get no error or feedback I just press enter and a new line appears. I've tried ...
JohnDoe's user avatar
  • 11
2 votes
1 answer
313 views

How to install packages to specific versions of Python?

I have multiple versions of Python installed on my system (Mac) according to the VS Code interpreter selector: Python 2.7.1 64-bit in usr/bin/python Python 3.7.4 64-bit ('base': conda) in anaconda3/...
Luke's user avatar
  • 21
0 votes
1 answer
2k views

How to stop VS Code terminal from printing file path upon every run?

I've just started learning Python and I'm fairly new to VS code. Fairly new as in, installed it about an hour ago. I was wondering if I can stop the terminal from printing this filepath (highlighted ...
Forky's user avatar
  • 3
0 votes
1 answer
1k views

Use conda and git from same terminal (W10)

Windows 10 beginner here - currently using: Anaconda Prompt terminal to use conda and manage python environments. git bash terminal to use git and manage code. I want to use both conda and git in ...
DannyDannyDanny's user avatar
0 votes
1 answer
3k views

Error download mysqlclient on Windows

After type this code in Terminal pip install mysqlclient I recieve this error message: ERROR: Command errored out with exit status 1: command: 'f:\pycharm\python\python.exe' -u -c 'import sys, ...
user1080316's user avatar
3 votes
2 answers
14k views

VS Code "Terminal : Clear" command not working as desired

I am trying to compile a Python file in VS Code. I have setup Ctrl+Shift+F10 as the keys for the "Python: Run file in terminal" command. Once the file runs in the terminal, I press the Ctrl+K ...
vivekmalhotra's user avatar
0 votes
1 answer
680 views

Confusing text when editing .bash_profile

I am running MacOS v.10.13.6, and in Terminal I was installing pipenv by following a tutorial. As part of the installation I went to edit bash_profile with vi editor in order to add 3 directories to ...
DevilsIvy's user avatar
0 votes
1 answer
377 views

How to play iTunes music from from a script run from the terminal or AIML pattern?

I want to write a command that launches iTunes and play the first song that is in the playlist or song list. I can launch iTunes from my code but it doesn't start the song automatically. My AIML (...
bobooi's user avatar
  • 9
0 votes
0 answers
34 views

When running a python program in the terminal, an error is produced not related to the code (windows)

So, I've recently written a python program and wanted to run it in the terminal. However, every time i try to run it, the error "'x' is not recognized as an internal or external command,operable ...
jack.py's user avatar
  • 101
0 votes
1 answer
59 views

Making a command line program on linux (Raspbian or Ubuntu)

My objective is to make a program that can be installed and then operated using Terminal. For example, Pip is installed We write pip install numpy in the terminal, and numpy is installed. ...
Breakpoint's user avatar
2 votes
1 answer
10k views

Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-install-xkffs1ax/word2vec/

I'm trying to install word2vec, but I keep on getting this error when I run pip install word2vec Collecting word2vec Using cached https://files.pythonhosted.org/packages/98/9c/...
user989361's user avatar
1 vote
2 answers
408 views

Python program fails only if run (via ssh) from a mac terminal

I am trying to run a python program on a data processing (linux) cluster. The program runs fine if I ssh to the cluster from my linux desktop and start it but fails if I ssh to the cluster from my mac ...
muzzle's user avatar
  • 121
0 votes
1 answer
6k views

How to terminate a python process similar to ctrl-c?

If I have several Terminal windows open, each running a python script, is there a way to terminate one by PID as if I pressed ctrl-c? With ctrl-c the script exits gracefully, but I tried various kill ...
d0g's user avatar
  • 2,300
0 votes
1 answer
904 views

Get information about a IP address or hostname [closed]

How to get information about a device with it's IP address or hostname with python or bash ? How to get list of devices connected to the same wifi router with python or bash ?
user9222646's user avatar
0 votes
0 answers
980 views

PyCharm Running Program Using Python, How To Terminate?

I run my program, then when I quite PyCharm and set it to not terminate my program. But next time I want to make changes to my program when I start up PyCharm, there is no way to stop the current ...
Oliver J's user avatar
1 vote
1 answer
2k views

Python Script/Unix Executable Runs in Terminal, Fails as Cron/Launchd job

I'm trying to configure launchd to trigger a python script/unix executable (i.e. python script with shebang line). When I load the .plist file (below), launchctl shows a status of 127 meaning, "The ...
JMikes's user avatar
  • 121
2 votes
2 answers
4k views

How to run a python script in a terminal upon login?

I have my Debian virtual machine set to automatically login, and I want to make it so that, when the auto-login occurs, a terminal will open and run the command python /home/pymodbus/examples/common/...
Aidan's user avatar
  • 31
0 votes
1 answer
583 views

Trying to install pyautogui and cannot find pip3 to do so

pip command works, but the instructions say to use pip3. Upon checking the version of python I have with: $pip --version I get: $ pip --version pip 9.0.1 from /Applications/anaconda3/lib/python3.6/...
Joel's user avatar
  • 1
1 vote
0 answers
264 views

Using img2txt in Midnight Commander

As far as I know it is possible to use img2txt with Midnight Commander as described here. My question is how to setup (in details) img2txt on Mac and how to use it with MC. OS: macOS High Sierra 10....
COOL_IRON's user avatar
2 votes
1 answer
3k views

python - macOS terminal ignoring /etc/paths for /usr/local/bin

I'm trying to install Homebrew with Python on a clean install of macOS High Sierra. HomeBrew successfully installed, as did python, pip etc into the /usr/local/bin folder and I've edited the /etc/...
Flatlyn's user avatar
  • 153
4 votes
1 answer
7k views

How to completely disable iTerm2 pop up messages

I'm using iTerm2 on my Mac, build 3.1.3, and I am working with two tabs. One tab has my Python code in vim. The other one is where I actually run it with python code_here.py. However, each time I ...
ComputerScientist's user avatar
1 vote
0 answers
3k views

How do I install libraries for Python3 through Cygwin?

I'm trying to set up an environment in Windows 10 where I can program in Python 3 and utilize libraries and modules as I please. I am seemingly unable to achieve this through Cygwin. EDIT: I have ...
Loke Gustafsson's user avatar
2 votes
2 answers
7k views

Get links from an html page

I have a txt file with several html file links. I need to access each link in this txt and grab the links that are inside it and save it to another txt file. How can I do this for Linux terminal/ ...
Rafael's user avatar
  • 51
0 votes
1 answer
1k views

Why am I getting this error in "pip install ephem"?

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun error: command '/usr/bin/clang' failed with exit ...
JobHunter69's user avatar
-1 votes
1 answer
6k views

Visual studio code can't CD to filename with spaces in it

The way I have python setup on my visualstudio code is probably not the correct way of doing it. But my code runs fine on here with the exception of handling outside files to read / write On the ...
Vincent Tang's user avatar
0 votes
0 answers
203 views

run python.py files

Sorry if I sound a bit primitive. I literally starting learning python 5 minutes ago When I try to run my program which I'm just using to test stuff >>> print ('Hello World') My text ...
user avatar
5 votes
1 answer
24k views

How to set alias for python3 on OSX

I'm trying to set an alias for python3 so I can run it with python. Here's my current .bash_profile # Setting PATH for Python 3.6 # The original version is saved in .bash_profile.pysave PATH="/...
Noah Kiss's user avatar
0 votes
1 answer
4k views

Open python script in a new terminal tab [Linux/Bash/Python]

I have lots of servers written in Python. I want to run them, one script per one terminal tab. I'm using Xubuntu 16.04. I know how to open the terminal tab in Xubuntu inside the bash script: #!/bin/...
mirx's user avatar
  • 217
0 votes
1 answer
80 views

about the my terminal appear this bash

Last login: Sat Jan 14 16:47:10 on ttys001 -bash: source /Users/liuyang/.bash_aliases: No such file or directory -bash: source /Users/liuyang/.bash_aliases: No such file or directory
YANG LIU linechany's user avatar
1 vote
1 answer
827 views

Installing Python Chromagnon for OSX Terminal to extract/restore Google Chrome tabs

I saw this suggestion posted here https://softwarerecs.stackexchange.com/questions/19500/tool-to-read-data-from-google-chrome-snss-files/19501 but am not sure how to install it for OSX. I'm looking to ...
shape's user avatar
  • 21
2 votes
1 answer
23k views

How do I use uncompyle6

I am new to Python. I have version 2.7.11 installed on my MacBook Pro, running Yosemite 10.10.5. I am trying to figure this out because I would like to decompile the scripts to the Native Instruments ...
satoprogrammer's user avatar
0 votes
1 answer
92 views

Control A on Mac Terminal behaves unexpectedly while using python ipdb

When I'm using Python ipdb (and this only happens on one of my three macs), I type Ctrl-A to get to the beginning of the line (after running a few statements without issue). The cursor APPEARS to jump ...
HaPsantran's user avatar
0 votes
1 answer
10k views

cannot execute binary file python on mac local machine

python --version shows that I have version 2.7.10 installed on my mac, it's located in /System/Library/Frameworks/Python.framework/Versions/2.7 trying to execute python from terminal raised the error: ...
Kukula Mula's user avatar