I am not a pip expert, how do you install optional...
# ask-community
e
I am not a pip expert, how do you install optional packages locally when doing development?
Copy code
pip install -e ".[dev]"
does not install the packages
1
a
That should work if the setup.py includes a dev requires, e.g. https://github.com/PrefectHQ/prefect-dask/blob/main/setup.py#L29
j
Make sure you’re in the folder that has a setup.py
e
I am there. This won't install for example pydantic, that is required by Databricks tasks
a
if there’s a requirements-dev.txt, you can also do
pip install -r requirements-dev.txt
pydantic should be required by Prefect
e
not in 1.0
Copy code
extras = {
    "airtable": ["airtable-python-wrapper >= 0.11"],
    "aws": orchestration_extras["aws"],
    "azure": [
        "azure-core >= 1.10.0",
        "azure-cosmos >= 3.1.1",
        "azure-mgmt-datafactory >= 2.7.0",
    ]
    + orchestration_extras["azure"],
    "azureml": ["azureml-sdk"],
    "bitbucket": orchestration_extras["bitbucket"],
    "dask_cloudprovider": ["dask_cloudprovider[aws] >= 0.2.0"],
    "dev": dev_requires + test_requires,
    "databricks": ["pydantic >= 1.9.0"],
a
oh then you might do
pip install -e ".[databricks]"
e
thanks
Can you point me out to the relevant documentation of pip so I learn something? 🙂
a
e
tnx, point 7