Questions tagged [python-3.9]

A version of the Python programming language, first released on October 5, 2020. This tag is for issues that are specific to Python 3.9. For general questions use the more generic [python] and [python-3.x] tags.

3.9 was released on October 5, 2020 (PEP 596).


Use this tag if your question is specifically related to Python 3.9. Otherwise, use the following guidelines to determine which tag(s) you should add to your question:

  • If your question applies to Python in general, use only the tag.
  • If your question applies to Python 3.x but not to Python 2.x, add the tag .
  • If you aren't sure, tag your question with and mention which version you're using in the post.

References

1128 questions
0
votes
2 answers

VS Code Python Interpreter Still shows 3.8.6 even though the 3.9 update came out?

It appears that I'm still using Python 3.8.6 even though the Microsoft store version of python says the 3.9 update was released and that I have it installed. How can I use the new version from the Microsoft store? I tried reinstalling multiple times…
fyd
  • 1
  • 1
  • 2
0
votes
0 answers

Some problems with numpy install

When I try to install numpy with pip install numpy with Python 3.9 I got this error: ERROR: Command errored out with exit status 1: command: 'c: 'c:prepare_metadata_for_build_wheel 'C cwd: Complete output (200 lines): Running…
Piccolo
  • 11
  • 5
0
votes
0 answers

Microsoft Visual C++ 14.0 or greater is required for python 3.9?

I got this error for PyAudio; I installed vscode,visualstudio; still it gives the error
0
votes
1 answer

Issues with installing matplotlib on Windows 10 with pipwin

I'm trying to install matplotlib on Windows 10 (64-bit), Python version 3.9 following the instructions in this answer with pipwin. I check at Christoph Gohlke's website and the suitable version seems to be available. I installed numpy and scipy…
amzon-ex
  • 1,645
  • 1
  • 6
  • 28
0
votes
1 answer

Error while installing OpenCV with Python3.9 on MacOS Mojave

Error message: $ pip3 install opencv-contrib-python ERROR: Could not find a version that satisfies the requirement opencv-contrib-python (from versions: none) ERROR: No matching distribution found for opencv-contrib-python
Jason
  • 1
  • 1
0
votes
1 answer

terminal still showing python version 3.5 even though 3.9 was installed

I downloaded and installed Python 3.9 using the Original Installer from python.org, and also tried it with Homebrew after that, which also installed 3.9. However, python3 --version still tells me I have 3.5.1? My work computer does not have this…
pixeloon
  • 1
  • 1
  • 1
0
votes
2 answers

Can't seem to pass the contents of a previous read into a subsequent subprocess.Popen cmd input

This is in Windows 10 Linux (wsl) running Python 3.8.5 and 3.90rc1. Not using Windows native. I'm os.walking through a directory hierarchy consisting of a number of recorded Albums listed by Album Title first, and within that title there is a song…
bblue9
  • 1
  • 1
0
votes
1 answer

Create a Distributed Package that uses lxml

I've created a python package that uses lxml. In setup.py I have defined: packages=find_packages(), # Required python_requires='>=3.8, <4', install_requires=[ 'typer[all]', 'packaging', 'lxml' ] Tests, packaging and deployments work…
Alex Weitz
  • 3,199
  • 4
  • 34
  • 57
0
votes
2 answers

When I try to install pygame using python 3.9 I get an error windows

There s currently no version of Pygame for python 3.9
user14338489
0
votes
1 answer

Ternary Operator with a dictionary [python]

I want to optimize the code below to a one line if i == 0: d = {} else: d[j] = d.get(j, 0) + 1 i tried solving it using a ternary operator but it gave me an error d = {} if i == 0 else d[j] = d.get(j, 0) + 1 The error : d = {} if i == 0…
Daniel
  • 21
  • 4
0
votes
1 answer

How do I configure Python and organise my interpreters?

Background: I have been learning Python (on MacOS) for about three months now. I began by installing Python 3.7 through Anaconda and predominantly used Jupyter Notebook to write code. As I learnt more, I found out about different text editors and…
jda5
  • 1,390
  • 5
  • 17
0
votes
1 answer

Opening Python script in Ruby mode is not working

Trying out the new "Ruby Mode" in Python 3.9, but am having trouble getting it working: Simple script in mymodule: puts "Hello World" Expected output when executing the file in ruby mode ("rb") was for "Hello World" printed on stdout, but I'm…
wim
  • 338,267
  • 99
  • 616
  • 750
-1
votes
0 answers

Change Python3 Default to use QGIS Python3 on Mac 13.4.1

Anaconda is my current Python3 default system-wide. There are a variety of packages I'm having issues installing on Anaconda so I need to use the QGIS Python 3 as the default. The current python default is located in…
-1
votes
0 answers

Why do I get an AttributeError when importing my enum class?

I'm a little confused with why I'm getting an AttributeError from my enum class I'm importing. Here's the code I've written: My enum class that's being imported into another file from enum import Enum class Builder(Enum): FENDER = 1 MARTIN…
Classified
  • 5,759
  • 18
  • 68
  • 99
-1
votes
0 answers

Trouble inserting all chunks from multiple files into database

My Python script to tokenize and chunk text files, then insert these chunks into an SQLite database seems to work for some files. Only some of the chunks are inserted for certain files. The script is using the tokenizers library for text processing…