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
-1
votes
2 answers

Installing "cryptography" on Python 3.9.0a5 (error)

just updated Python from 3.8.2 to 3.9.0a5 due to the merge operator for dictionaries. When I now try to install "cryptography" in my virtual environment, I get the following error: cryptography install error Pip Version is: 20.1.1, Python Version…
Quirynn
  • 44
  • 6
-1
votes
1 answer

"AttributeError: module 'pip' has no attribute 'main'" when installing python libraries

I have this problem with Python (version 3.9) and Visual Studio 2019. AttributeError: module 'pip' has no attribute 'main' Can anybody help me ?
-2
votes
2 answers

AttributeError: 'Order' object has no attribute 'shipping'

Learning Django with Tutorial. In the end of lesson I have error: AttributeError: 'Order' object has no attribute 'shipping'. I can't understand what's wrong. Error in PyCharm Terminal I understand that Order must have shipping attribute, but…
Artem
  • 57
  • 5
-2
votes
1 answer

import moviepy error issue with python3.9+ and matplotlib on latest MacOS M1

For python 3.9+ there seems to be an error when I import moviepy after a pip install for moviepy with the correct command as per docs. I am trying an alternative to save animated plots from matplotlib from .gif format to .mp4 format, but matplotlib…
Arya Keni
  • 1
  • 2
-2
votes
1 answer

Python f-strings: how to escape curly brackets with numbers in it

If you have to escape curly brackets in f-strings you can double them, so {{hello}} results in {hello}. The problem is, that the algorithm just concatenates the string and afterwards interprets this part as every other part. So if there is any…
-2
votes
2 answers

Sep and End Arguments in print() statement

I am currently using Python 3.9.6 version and while using the print() statement with "sep=" as an argument, i am getting the syntax error. My code for "Sep" Argument is: print("John","Sam","Michael",sep="-") My code for "End" Argument…
-2
votes
1 answer

Try to get variable type on python3 on macOS and it show the below error

Traceback (most recent call last): File "/Users/kane/study/python/basicDataStructure/liner_data_structure.py", line 2, in from turtle import clear File…
kane
  • 1
  • 1
-2
votes
1 answer

match/case statement raises SyntaxError in PyCharm

I'd like to use the match/case statement but currently PyCharm does not like it and when I try to run this code: def test(action): match action: case "send": pass case "create": pass case "dump": …
t3chb0t
  • 16,340
  • 13
  • 78
  • 118
-2
votes
1 answer

Mastermind with colors

I am making a game and I don't get why when I input the right values, it won't print the winning text For example, for testing I would input the correct random color, but nothing will display after I input the right answer. Everything else prints…
Beron Tan
  • 11
  • 2
-2
votes
1 answer

mysql driver not loading on flask_sqlalchemy python3 in venv | No module named 'MySQLdb'

Im trying to make the following combination work. No luck. Anyone here can help ? flask_sqlalchemy mysqlclient mysql-connector-python Python 3.9.5 setup.cfg has above package and being installed in a venv Error engine =…
-2
votes
1 answer

How do I change the timestamp for each new input taken?

So I'm trying to make a program where the user inputs notes and it timestamps them, but when I run this all the date-times are the same. Is there any way I can change this? from time import time, ctime t = time() noteno = int(input("How many notes…
Aurora
  • 9
  • 1
  • 8
-2
votes
3 answers

random number of " * " in a row in python 3

I want to generate a random number of " * " smaller than 21 and larger than 0 in a row for 100 times, in python I tried to write: import random for x in range(100): a = random.randint(1, 20) for y in a: print("*") Can someone…
And
  • 1
-2
votes
1 answer

VSCode can't find the module I've just installed

I've just installed a Python module, but VSCode can't seem to find it. I have changed my Python Interpreter, but it doesn't work: My code runs fine in the terminal and PyCharm, but when I run it in VScode, it throws an error: If you can help me, I…
-2
votes
1 answer

When ever I try to import any open source library or try to upgrade my pip this error pops up. Can someone please help me?

This is the error ImportError: cannot import name 'raise_for_status' from 'pip._internal.network.utils' (c:\users\aditya\appdata\local\pro grams\python\python39\lib\site-packages\pip_internal\network\utils.py)
-2
votes
4 answers

adjusting easy python code "adding small condition"

I was trying to adjust this code so it accepts if I wrote rock , paper or scissor in small or capital letter. and if it wasn't one of these three words then it should exit the program and print "WRITE IT CORRECTLY!") import random y = input("Enter…
Mariam
  • 1
  • 2
1 2 3
74
75