Ich versuche, Python 3.12.1 oder 3.13.0 zu installierenPython

Python-Programme
Anonymous
 Ich versuche, Python 3.12.1 oder 3.13.0 zu installieren

Post by Anonymous »

Ich versuche, die neue Python-Version zu installieren und versuche, pyenv zu verwenden. Ich erhalte ständig diesen Fehler.

Code: Select all

pyenv install 3.13.0 -f
Downloading Python-3.13.0.tar.xz...
\-\> https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tar.xz
Installing Python-3.13.0...

BUILD FAILED (MINGW64_NT-10.0-19045 3.4.10-87d57229.x86_64 using python-build 20180424)

Inspect or clean up the working tree at /tmp/python-build.20250105182021.11329
Results logged to /tmp/python-build.20250105182021.11329.log

Last 10 log lines:
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking for --with-app-store-compliance... not patching for app store compliance
checking for gcc... no
checking for cc... no
checking for cl.exe... no
checking for clang... no
configure: error: in `/tmp/python-build.20250105182021.11329/Python-3.13.0': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details
Ich kann die Version sehen, wenn ich pyenv install -l versuche

Code: Select all

python -V
gibt mir
Python 3.8.2
Ich verwende Windows und verwende bash [MINGW64] . Kann mir hier jemand helfen?
Ich versuche, meinen FastAPI-Code auszuführen, aber das schlägt fehl:

ImportError : Der Name „Annotated“ kann nicht aus „typing“ importiert werden (c:\python38\lib\typing.py

Ich muss diese Version aktualisieren, um die auszuführen Code.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post