Installation on Python from Xcode Command Line Tools
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 28/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- macos, python
- Domaine
- cli, operating-systems
Piste de recherche
Commencez par install-poetry.py et reproduisez l’installation officielle de 1.1.8 sur macOS 11.5.2 en utilisant uniquement Apple Command Line Tools et Python 3.8. Comparez-la aux installations preview et direct-pip fonctionnelles. Le travail est terminé lorsque l’installateur officiel crée une commande poetry utilisable dans la configuration indiquée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption).
- OS version and name: macOS 11.5.2
- Poetry version: 1.1.8
- Link of a Gist with the contents of your pyproject.toml file:
Issue
Hello everyone, I'm having some trouble with Poetry recently, although I work with Python for some years.
On a clean macOS install, with only Command Line Tools from Apple installed, we get Python 3.8.2 with some outdated Pip.
Installing Poetry with this Pip version (19) breaks beautifully, but after an --user --upgrade pip I got it working.
The problem is: when using the official installer curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python3 - I got:
Retrieving Poetry metadata
# Welcome to Poetry!
This will download and install the latest version of Poetry,
a dependency and package manager for Python.
It will add the `poetry` command to Poetry's bin directory, located at:
/Users/mateus/Library/Python/3.8/bin
You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.
Installing Poetry (1.1.8): Done
Poetry (1.1.8) is installed now. Great!
You can test that everything is set up by executing:
`poetry --version`
Everything seems fine, my PATH is already good:
echo $PATH
/Users/mateus/Library/Python/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
But trying poetry I get zsh: command not found: poetry. 😢
Upon further investigation, we can see that poetry is a symlink under my "Poetry bin directory":
ll /Users/mateus/Library/Python/3.8/bin
-rwxr-xr-x 1 mateus staff 251B 5 Set 12:45 doesitcache
-rwxr-xr-x 1 mateus staff 245B 5 Set 12:45 keyring
-rwxr-xr-x 1 mateus staff 279B 5 Set 12:45 normalizer
-rwxr-xr-x 1 mateus staff 259B 5 Set 12:41 pip
-rwxr-xr-x 1 mateus staff 259B 5 Set 12:41 pip3
-rwxr-xr-x 1 mateus staff 259B 5 Set 12:41 pip3.8
-rwxr-xr-x 1 mateus staff 253B 5 Set 12:45 pkginfo
lrwxr-xr-x 1 mateus staff 66B 5 Set 12:45 poetry -> /Users/mateus/Library/Application Support/pypoetry/venv/bin/poetry
-rwxr-xr-x 1 mateus staff 273B 5 Set 12:45 virtualenv
-rwxr-xr-x 1 mateus staff 246B 5 Set 12:41 wheel
Okay, so lets check what's on /Users/mateus/Library/Application Support/pypoetry/venv/bin/:
ll /Users/mateus/Library/Application\ Support/pypoetry/venv/bin
-rw-r--r-- 1 mateus staff 2,1K 5 Set 12:45 activate
-rw-r--r-- 1 mateus staff 1,4K 5 Set 12:45 activate.csh
-rw-r--r-- 1 mateus staff 3,0K 5 Set 12:45 activate.fish
-rw-r--r-- 1 mateus staff 1,7K 5 Set 12:45 activate.ps1
-rw-r--r-- 1 mateus staff 1,2K 5 Set 12:45 activate_this.py
-rwxr-xr-x 1 mateus staff 306B 5 Set 12:45 pip
-rwxr-xr-x 1 mateus staff 306B 5 Set 12:45 pip-3.8
-rwxr-xr-x 1 mateus staff 306B 5 Set 12:45 pip3
-rwxr-xr-x 1 mateus staff 306B 5 Set 12:45 pip3.8
lrwxr-xr-x 1 mateus staff 128B 5 Set 12:45 python -> /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python
lrwxr-xr-x 1 mateus staff 6B 5 Set 12:45 python3 -> python
lrwxr-xr-x 1 mateus staff 6B 5 Set 12:45 python3.8 -> python
-rwxr-xr-x 1 mateus staff 293B 5 Set 12:45 wheel
-rwxr-xr-x 1 mateus staff 293B 5 Set 12:45 wheel-3.8
-rwxr-xr-x 1 mateus staff 293B 5 Set 12:45 wheel3
-rwxr-xr-x 1 mateus staff 293B 5 Set 12:45 wheel3.8
As you can see, no signal whatsoever of poetry on Library/Application\ Support/pypoetry/venv/bin, and I really don't understand why. Anyone have any clues?
Already tried a complete uninstall of everything with rm by hand.
Trying to install the alpha/preview release using official installer works. Trying to install from pip directly also works.
So it's seem related to the installer for 1.1.8 and some specific macOS thing, what do you guys think?
Thanks, and I hope I help someone with this issue, I didn't find anything related on my research.
- Langage dominant
- Python
- Étoiles
- 255
- Forks
- 65
- Merge moyen
- 2 h 48 min
- PR mergées (30 j)
- 1
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de python-poetry/install.python-poetry.org
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
python-poetry/install.python-poetry.org#144 · 8 commentaires · 2 réactions ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 42/100
python-poetry/install.python-poetry.org#177 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 42/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
Toutes les issues de python-poetry/install.python-poetry.org
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 2 jours
-
Status: Triage Type: Bug
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
-
Objects.List treats versions=false (and similar flags) as truePeut-être pris @andaaron l’a pris aujourd’hui. Ouvertepriority: p2 type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
googleapis/storage-testbench#829 ·
Les mainteneurs répondent en général sous 2 jours
-
[Bug]: memory provider treats 1:1 DMs as shared surfaces, so DM turns never receive reviewed recordsOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
rlaope/oh-my-hermes#2088 ·
Les mainteneurs répondent en général sous 1 jour