Questions tagged [python3]

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 (http://www.stackoverflow.com) instead.

#About Wikipedia has much more: http://en.wikipedia.org/wiki/Python_(programming_language)

The official website is here: http://www.python.org/

Python's direction and language development is still controlled by its original author, Guido van Rossum. Guido is now an employee of Google, which uses Python exclusively as its glue/scripting language. He is affectionately known as the language's 'benevolent dictator'.

As of Spring 2011, there are two major development branches of Python: 2.x and 3.x (Python 3000). Python 3000 was released with many breaking syntactic changes as a result of efforts to promote consistency in the language and to fully integrate Unicode support. This has led to slow adoption of the new version, as many people are dependent on the extensive libraries available in Python and many libraries have not been upgraded to support Python 3.

#Tag usage

Use for questions about computer hardware or software related to Python. Do not ask programming questions as they are off-topic here. Ask them on Stack Overflow instead.

330 questions
53
votes
1 answer

What does "precompile standard library" option mean in python installation?

I am trying to understand different options in Python3 installation. What does the "Precompile Standard library" option mean in the Custom Python installation and why should it be enabled or left deselected by default?
GP92
  • 309
39
votes
13 answers

How do I install vim on OSX with Python 3 support?

In the google searches I've done, the command I should be using is brew install vim --with-python3, which succeeds without error, but then vim --version reports Python 3 as unavailable. k162:~ asday$ brew install vim --with-python3 ==> Using the…
31
votes
5 answers

How do I alias python3 on Windows?

I want to alias python3 to python on windows. I have already removed the alias for the microsoft store as described in this answer. However python3 is still not a known alias. How to I fix this?
11
votes
5 answers

Ansible installed via pip3, but Ansible commands not found

I have installed Ansible via pip3, but I can't find the Ansible commands (ansible --version, ansible-playbook, etc.) Here's the listing that shows that Ansible is installed via pip3: :~# pip3 list | grep ansible DEPRECATION: The default format will…
11
votes
4 answers

qtpy.PythonQtError: No Qt bindings could be found

I had anaconda running on my machine. few days ago i had to update some of the libraries because they were outdated. after the update, I was not able to launch anaconda-navigator or spyder anymore due to the following error: (base)…
samhar
  • 113
10
votes
1 answer

How to NOT change the shell prompt when activating a Python venv?

I created a venv like so: python3 -m venv .venv When I activate it, the shell prompt is changed. antkong@konga-mbp ~/dev/my-project (git-branch-name) $ source .venv/bin/activate (.venv) konga-mbp:my-project antkong$ How can I keep the prompts the…
Anthony Kong
  • 5,318
9
votes
5 answers

Why did keyboard shortcut Ctrl-Alt-N stop working in Visual Studio Code?

So, I recently installed Visual Studio Code(1.40.0) on Windows 10. Everything was working fine as I was working around to see how to run Python Code, I installed Python extension, pylint, Auto PEP-8 formatter, code-runner extension and I was being…
Arko
  • 167
9
votes
2 answers

What's the difference between the keywords 'python' and 'python3' in command lines?

I've seen two ways to open a python script using the commandline, these are: python foo.py and python3 foo.py I know, there are python2 etc, but what does python without a version do then and why did I see it recently?
milkwood1
  • 237
9
votes
3 answers

How to change default python executable on Windows 10?

I have an installation of python on my C drive, but since I have no admin rights I am unable to install modules into the same. error: could not create 'C:\Program Files\Python36\Lib\site-packages\yaml': Access is denied I tried making a copy of…
8
votes
1 answer

How to remove/uninstall corrupted winget package?

When I run winget list python I get that Python.Python.3 is installed by winget; however, running python says the executable is missing. winget uninstall --id Python.Python.3 runs the uninstaller but the uninstaller halts and does not complete. Is…
7
votes
2 answers

How to fix _decimal module compilation error when installing Python 3.3.2 in CentOS 5.9 (x86_64)?

I'm getting the following error when trying to compile Python 3.3.2 in CentOS 5.9 x86_64: Failed to build these modules: _decimal I get this error when executing the "make" command (after the ./configure command). Doing a Google search, I have…
Nicolas G
  • 161
6
votes
2 answers

How to install python packages with all dependencies offline via pip3?

first of all I have managed to install Ansible on a server which has no internet access. But I wonder if my approach is correct. At first I downloaded the necessary dependencies via pip3. pip3 download ansible -d . This resulted in the following…
yabberth
  • 165
  • 1
  • 2
  • 6
5
votes
1 answer

Django's dev server causes permanent high CPU load with Python 3

Django's development server runs under Python 2.7.5 (on Windows 7) with a rather constant (idle) load of about 1-3% on my test system - no page loads or other calculations done. Switching to Python 3.4.2 causes the constant load to rise to an…
5
votes
2 answers

Is there a way to get python's help() to work in the SublimeText 3 console?

Sublime Text has a console which can be activated by using Ctrl + `. It exposes a python interpreter. On my machine, it's python 3.3. >>> import sys >>> sys.version '3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:57:17) [MSC v.1600 64 bit…
recursive
  • 1,007
5
votes
1 answer

_tkinter.TclError: couldn't connect to display "localhost:0.0" matplotlib bash on windows

Insipired by the problems with displaying matplotlib used in a Python script using the terminal of the Bash (Ubuntu) on Windows, I have followed the instructions listed in the first answer. However, after restarting the computer, suddenly I get an…
fgh
  • 81
1
2 3
21 22