[Python] Trying to install python 3.12.1 or 3.13.0

Discussão em 'Python' iniciado por Stack, Janeiro 6, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to install the new python version and am trying using pyenv. I keep getting this error.

    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


    I can see the version when I try pyenv install -l

    python -V gives me

    Python 3.8.2

    I am on Windows, using bash [MINGW64] . Can someone help me out here?

    I am trying to run my FastAPI code but the is failing:


    ImportError: cannot import name 'Annotated' from 'typing' (c:\python38\lib\typing.py
    ​

    I need to update this version to run the code.

    Continue reading...

Compartilhe esta Página