[Python] I can't download packages in PyCharm CE

Discussão em 'Python' iniciado por Stack, Novembro 20, 2024.

  1. Stack

    Stack Membro Participativo

    I'm trying to download numpy in PyCharm but it keep saying invalid syntax:

    Traceback (most recent call last):
    File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/packaging_tool.py", line 2, in <module>
    import traceback
    File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/traceback.py", line 5, in <module>
    import linecache
    File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/linecache.py", line 11, in <module>
    import tokenize
    File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tokenize.py", line 394
    r buffer = _builtin_open(filename, 'rb')
    ^^^^^^
    SyntaxError: invalid syntax


    I'm currently using Python 3.10. I have download Python 3.12 and can install packages just fine, but now I want to use tensorflow and I can't download it on 3.12. I have tried to use terminal to download it, but it's just the same, I even used the way that Jetbrains show in their Documentation (https://jetbrains.com/help/pycharm/package-installation-issues.html#results) but I still can't fix it. Please help me.

    Continue reading...

Compartilhe esta Página