pdm icon indicating copy to clipboard operation
pdm copied to clipboard

SyntaxError during curl installation on Mac

Open peemblis opened this issue 4 years ago • 3 comments

  • [x ] I have searched the issue tracker and believe that this is not a duplicate.

Running curl command below to install pdm results in syntax error. I'm on a Mac.

Steps to reproduce

❯ curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python -
  File "<stdin>", line 39
    def _call_subprocess(args: list[str]) -> int:

                             ^
SyntaxError: invalid syntax

Actual behavior

SyntaxError above

Expected behavior

Expected pdm to be installed.

peemblis avatar Dec 10 '21 23:12 peemblis

Hi! What's your Python version?

pawamoy avatar Dec 10 '21 23:12 pawamoy

3.7

peemblis avatar Dec 11 '21 01:12 peemblis

try replacing the last python to python3.7 or python3

frostming avatar Dec 11 '21 06:12 frostming