Handling "two factor auth enabled..." on PyPI
Overview Two-factor authentication is becoming mandatory on PyPI. https://blog.pypi.org/posts/2023-05-25-securing-pypi-with-2fa/ After setting up two-factor authentication and attempting to upload, the following error occurred. U 1 W E p 0 A R l 0 R R o % N O a I R d ━ N i ━ G n ━ g ━ ━ E H U u x ━ r T s p x ━ r T e l x ━ o P r o x ━ r E a . ━ r < d w ━ d r ア h ━ u o カ i l ━ r r ウ n ━ i : ン ━ n ト p ━ g 4 名 l ━ 0 > a ━ u 1 c ━ p h e ━ l U a ━ o n s o ━ a a f ━ d u t ━ . t w p ━ h o a ━ R o s ━ e r f s ━ t i a w ━ r z c o ━ y e t r ━ d o d ━ w r . ━ i f ━ t r a ━ h o u ━ m t ━ t h ━ h h ━ e t e ━ t n p a 2 s b 2 v : l . e / e 2 r / d / b u , 2 o p 2 s l a . e o n 2 a o d A k p . P B t p I i y • o p T n i o 0 . k 0 f o e : o r n 0 r g 0 / o m l r • o e r g T 6 e a r 5 c u . d y s 2 e / t t e M a d B i / l P s s u . b l i s h e r m u s t b e u s e d t o Solution I had ~/.pypirc configured as follows. ...