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.

322 questions
47
votes
1 answer

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

I am trying to understand different options in python 3.6 installation. What does the Precompile Stadard library means in the Custom Python installation and why it could be deselected by default?
GP92
  • 697
  • 2
  • 7
  • 12
35
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…
Adam Barnes
  • 655
  • 1
  • 6
  • 11
20
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?
HerpDerpington
  • 333
  • 1
  • 3
  • 11
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
  • 227
  • 1
  • 3
  • 7
8
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
  • 83
  • 1
  • 1
  • 4
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
  • 7
7
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…
Jinja_dude
  • 207
  • 1
  • 3
  • 9
7
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
  • 119
  • 1
  • 1
  • 6
7
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…
Adnan Arif Sait
  • 83
  • 1
  • 1
  • 4
6
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
  • 4,868
  • 11
  • 48
  • 80
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
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
  • 1
  • 6
5
votes
1 answer

RuntimeError: imageio.ffmpeg.download() has been deprecated. Use 'pip install im ageio-ffmpeg' instead.'

I am getting this error when trying to import moviepy.editor. >>> import moviepy.editor Traceback (most recent call last): File "", line 1, in File…
Shah
  • 51
  • 1
  • 1
  • 2
4
votes
1 answer

Python interpreter slowly pastes code

When I first started using Python, the process of pasting code was fast; code I copied was pasted almost instantaneously into the interpreter. However, at some point roughly 6 months or so ago the interpreter started inputting pasted text more…
Zenohm
  • 161
  • 4
4
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
  • 967
  • 2
  • 9
  • 20
1
2 3
21 22