Reputation: 23
Is there any way to install all of the packages that are listed in install_requires
of setup.py without installing the main package?
The list looks like:
install_requires=[
'cassandra-driver==3.23.0',
# 'kafka-python==1.4.7',
# 'parmap==1.2.3',
'imblearn==0.0',
# 'imbalanced-learn==0.3.3',
'toolz==0.9.0',
]
Is there any way to install directly from the setup file without having to separate the packages and use pip?
Upvotes: 0
Views: 738
Reputation: 61
When looking at
pip install --help
you can see that you can either install all packages from the file itself with the help of
python -m pip install -r requirements.txt
or you can do it in the command line like this:
pip install package1 package2 package3
Maybe have a look at the Pip-Documentary: https://pip.pypa.io/en/stable/user_guide/
Upvotes: 1