J'essaie d'installer une librairie python sur macOS en passant par these instructions.Pip installer - target =. Alfred-Workflow donne une erreur
Cependant, je reçois une erreur chaque fois que j'exécutez cette commande: pip install --target=. Alfred-Workflow
Et je reçois toujours cette erreur pour l'exécuter:
pip install --target=. Alfred-Workflow
Collecting Alfred-Workflow
Installing collected packages: Alfred-Workflow
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/usr/local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/usr/local/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/usr/local/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/usr/local/lib/python2.7/site-packages/pip/wheel.py", line 247, in move_wheel_files
prefix=prefix,
File "/usr/local/lib/python2.7/site-packages/pip/locations.py", line 153, in distutils_scheme
i.finalize_options()
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", line 264, in finalize_options
"must supply either home or prefix/exec-prefix -- not both"
DistutilsOptionError: must supply either home or prefix/exec-prefix -- not both
J'ai essayé googler et la recherche de cela, mais encore ne comprendre. Merci pour toute aide.
Essayez [enlever le signe égal '' =] (https://pip.pypa.io/en/stable/reference/pip_install/#cmdoption- t) - 'pip install -t. Alfred-Workflow' – MattDMo
Ne fonctionne pas. Donne un message similaire: http://i.imgur.com/hu5q9qp.png –
Copie possible de [DistutilsOptionError: doit fournir soit home ou préfixe/exec-prefix - pas les deux] (http://stackoverflow.com/questions/24257803/distutilsoptionerror-must-supply-soit-home-or-prefix-exec-prefix-not-both) – hansaplast