-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
Poetry fails to install on macOS High Sierra (10.13.4) using Homebrew Python 3 (3.6.5).
$ curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python3
Retrieving metadata
Installing version: 0.8.5
- Getting dependencies
An error has occured: Command '('python', '-m', 'pip', 'install', 'poetry==0.8.5', '--target', '/var/folders/zk/1bgll_755dddcqh6snjdsmt00000gn/T/poetry-installer-ra11xs2z/dist')' returned non-zero exit status 1.
b'/usr/bin/python: No module named pip\n'
The reason this happens is the Installer.call() method has python hardcoded as the Python executable name. In my opinion, this is a soft violation of PEP 394. To solve this problem, call sys.executable to obtain the filesystem location of the version of Python running the get-poetry.py script.
Pull request #60 has a suggested fix.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels