Questions tagged [python]
Python is an interpreted, general, high-level programming language. Programming questions are off topic. Questions about the use of Python should be asked at Stack Overflow (https://www.stackoverflow.com) instead.
3,216 questions
1 vote
1 answer
10k views
How to make my .exe file trusted by other computers
I've made a simple python program to upload files to a server for people in my company to use (it's a short-term solution for now). The user runs the file and it asks them to choose files, which are ...
1 vote
1 answer
6k views
python virtualenv ERROR: unknown command "config"
# virtualenv tmp/.venv New python executable in /root/tmp/.venv/bin/python Complete output from command /root/tmp/.venv/bin/python -m pip config list: ERROR: unknown command "config" -----------------...
1 vote
1 answer
6k views
pip install python winerror 10054
Been trying to pip install selenium keep getting these same errors, but its not just selenium its any package. I believe it maybe a firewall issue because I am trying to install this on a workstation ...
0 votes
3 answers
12k views
Windows CMD cannot use Python Virtualenv or Django commands
I'm trying to use python Virtualenv and Django. I have successfully installed both using Pip. On every tutorial I've found, it tells me to open CMD and type in a command. For example: C:\Users\USER\...
2 votes
1 answer
12k views
How do I redirect output from a Python script to file?
I want to redirect all output (stdout and stderr) of console to the text file. I make the following steps: Open cmd.exe Start command: "python.exe" > "file.txt" After that, I'm ...
-1 votes
0 answers
65 views
Error when installing programs using pip3
have mac OS Tahoe 26.2.1 with pythin3.7.2 and trying to install docx with following command: pip3 install python-docx openpyxl docx2pdf I get this error: Could not find a version that satisfies the ...
4 votes
2 answers
4k views
Why am I experiencing Python installation errors on macOS?
I'm trying to install python because I think my previous installs aren't very clean. familys-imac:~ Paul-Arthur$ ruby -e "$(curl -fsS https://raw.github.com/gist/323731)" /usr/local/.git ...
2 votes
1 answer
9k views
Could not find a version that satisfies the requirement Django==2.0.6 (from versions: )
I am following a tutorial on https://djangogirls.org/ and I am frustratingly running into issues installing django or any other package. Per the tutorial, after creating and activating a Virtual Env, ...
0 votes
2 answers
9k views
"Edit with Idle" appears when I right click a Python file, yet does not work. Also, python files show the wrong Python
My problem: http://imgur.com/a/a3D30 Imgur URL dead. I can, however, open idle manually, and then open the file. But this is a hassle. Another small thing. What is wrong with my Python file's icon? ...
1 vote
1 answer
42 views
apt-get python not installable but it is
On Ubuntu, trying to install a deb-file (armory 0.96.5), I get the error: depends on python (>= 2.6), but it is not installable. Well, it already is installed and just typing python --version in ...
4 votes
1 answer
10k views
Installing Python 2.7 on Debian 12 in a virtualenv (or other options)
I know that Python 2.7 was EOL'd years ago, but I still have a sprawling code base which I I have to maintain that uses it. I hope to get it upgraded in the coming months, but it's not fully in my ...
0 votes
1 answer
118 views
How to stop indentation with spaces for python files in vim
I have done all i can in .vimrc: $ cat ~/.vimrc set nocompatible syntax enable filetype plugin on " Allow recursive file find set path+=** set wildmenu " stop using spaces for tabs! ...
0 votes
2 answers
82 views
pip is broken after pip upgrade - ModuleNotFoundError: No module named 'tomllib'
I upgraded PIP, now any call of PIP results in an error. Any suggestions in Internet to restore PIP ... are using PIP itself. I mean: how can I use PIP to resolve the problem if excatly the PIP is ...
0 votes
1 answer
5k views
Python: TCP/IP Socket Client, how to send login packet?
I wanted to create a bot to send login/join packets to a game server. So it will join then send more packets for it to write something in the chat, but I'm not sure how to do this. If someone could ...
0 votes
1 answer
5k views
Compiling vim with python support - installing powerline
I spent all day yesterday backing up my hard drive, clean installing Mac OSX Yosemite, and now I'm trying to get all my stuff in order like it was before. I have powerline installed properly (it ...