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.
113
questions
228
votes
8
answers
169k
views
Typing “python” on Windows 10 (version 1903) command prompt opens Microsoft store
This is strange issue I have observed. I installed Active Python 2.7 on Windows 10 (version 1903).
On typing “python” from search, opens the Python 2.7 prompt but when I type from command prompt ...
110
votes
5
answers
720k
views
How do I add Python to the Windows PATH?
I want to be able to run Python commands from the Windows CMD. However, if I don't specify Python's full path for each command, I get an error saying "Python is not recognized as an internal or ...
2
votes
3
answers
8k
views
How do I run a Python script from a C shell without specifying whole path?
I would like to run a Python script from a Hamilton C shell without having to specify the whole path of the script.
The first thing I tried was to add my scripts folder to the PATH environment ...
19
votes
5
answers
15k
views
How to simulate slow internet connection
I currently deploy with GAE (google app engine) and I try to implement some AJAX validation. So I got a couple text-fields and "spinners" (ajax loaders) which should be displayed when an AJAX request ...
2
votes
3
answers
5k
views
Association of Python files in Windows not working
On my system (Windows Vista Home Premium 64bit) Python files are associated with Python interpreter:
C:\Users\Piotr>assoc .py
.py=Python.File
C:\Users\Piotr>ftype Python.File
Python.File=c:\...
5
votes
3
answers
2k
views
Using Python on Mac
I want to learn Python using my Mac.
Now I want to setup a Python version >= 3.1.3, because my materials for learning are using this version.
Typing python into terminal results version 2.6.1, using ...
4
votes
1
answer
8k
views
How to install pytorch FROM SOURCE (with cuda enabled for a deprecated CUDA cc 3.5 of an old gpu) using anaconda prompt on Windows 10?
I have (with the help of the deviceQuery executable in C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\vX.Y\extras\demo_suite
according to https://forums.developer.nvidia.com/t/what-is-the-compute-...
2
votes
4
answers
3k
views
How to identify what is starting a process?
On my XP machine, a python.exe process starts every so on which takes up 100% of my CPU. I have to kill it from the task monitor.. How can one identify what this process is and how you can disable ...
104
votes
10
answers
979k
views
Updating Python on Ubuntu system
I want to update the Python build on my Linux box, but the only way I know how to do it is uninstalling the current version and installing the new one. My system is already up to date (I updated ...
72
votes
4
answers
298k
views
python3-pip installed but pip3 command not found?
I am testing a Python3 program in several computers. To do that, I need to install a library of Python with pip3.
So first, I was installing python3-pip in each computer (everyone is running Kubuntu ...
67
votes
7
answers
98k
views
Can't install virtual interpreter in PyCharm in Linux
When I try to add virtualenv as an interpreter in PyCharm Community 2018.1.2 in Kubuntu 18.04 I get the following error:
ModuleNotFoundError: No module named 'distutils.core'
How can I solve this?
25
votes
2
answers
126k
views
How to increase Python's CPU usage
I use Python to execute some algorithms and no matter which Python I use, and I have tried many versions, the CPU usage goes to 25% max. Why doesn't Python take advantage of the rest of my CPU ...
21
votes
5
answers
51k
views
installing wxpython via pip or easy_install
I am running into some problems installing wxpython using pip.
Here is my current output:
[myuserid]% sudo pip install wxpython
Downloading/unpacking wxpython
Downloading wxPython2.8-win64-devel-2....
14
votes
2
answers
5k
views
How can I use the Homebrew Python with Homebrew MacVim on Mountain Lion?
I originally asked and answered this question: How can I use the Homebrew Python version with Homebrew MacVim?
These instructions worked on Snow Leopard using Xcode 4.0.1 and associated developer ...
7
votes
3
answers
4k
views
`which python` points to the python I want, but `python` runs the wrong version
I want to use python24 provided by ports, so I've installed it, and python_select -s shows that the version I want is indeed selected. Running which python gives /opt/local/bin/python, and running /...