ywangd / stash

StaSh - Shell for Pythonista
MIT License
1.93k stars 227 forks source link

Pip does not support extras in extras_require #221

Open esanker opened 7 years ago

esanker commented 7 years ago

I tried to install Cozmo package using pip install cozmo[camera] and got an error stating "No matches found". cozmo

Martmists-GH commented 7 years ago

Same happens with pip install discord.py[voice]

ywangd commented 7 years ago

Currently pip does not support extra_requires. As a workaround, you can manually issue separate pip commands for them.

For pip install cosmo[camera], the extra dependancies are 'camera': ['Pillow>=3.3', 'numpy>=1.11']. So you can try just manually call pip install Pillow though it might not work as I don't think Pillow is pure Python. The same goes to numpy.

For pip install discord[voice], the extra requirement is PyNaCl==1.0.1. If it is pure Python, you can install it separately by pip install PyNaCl