IBM Support

PIP install conflict in scipy reported with previous version of requirements.txt when testing local functions

Troubleshooting


Problem

When building a custom function and testing it in your local environment using the previous version of your requirements.txt, your installation may fail with this pip conflict:
ERROR: Cannot install -r requirements.txt (line 11), -r requirements.txt (line 26), -r requirements.txt (line 31), -r requirements.txt (line 32), -r requirements.txt (line 34), -r requirements.txt (line 39), -r requirements.txt (line 40), -r requirements.txt (line 42), -r requirements.txt (line 5) and scipy==1.5.0 because these package versions have conflicting dependencies.

The conflict is caused by:_
    The user requested scipy==1.5.0
    imbalanced-learn 0.7.0 depends on scipy>=0.19.1
    lightgbm 3.1.1 depends on scipy
    pyod 0.7.5 depends on scipy>=0.19.1
    scikit-image 0.16.2 depends on scipy>=0.19.0
    scikit-learn 0.23.1 depends on scipy>=0.19.1
    seaborn 0.10.1 depends on scipy>=1.0.1
    statsmodels 0.11.1 depends on scipy>=1.0
    stumpy 1.5.1 depends on scipy>=1.2.1
    tensorflow 2.1.0 depends on scipy==1.4.1; python_version >= "3"

Cause

MAS Monitor 8.5 and 8.6 have upgraded their scipy and python library versions to later versions.

Resolving The Problem

To fix, please use a requirements.txt file with these versions specified.
dill==0.3.0
ibm-watson-machine-learning==1.0.43
iotfunctions==0.0.2
joblib==0.16.0
jupyterlab>=3.1.7
lightgbm>=3.1.1
lxml==4.6.2
matplotlib==3.3.2
mypy-extensions==0.4.3
networkx>=2.4
numpy>=1.18.5
outlier-utils==0.0.3
pandas>=1.0.5
pmlb==0.3
psycopg2-binary==2.8.4
pyarrow==0.17.1
pydot>=1.2.4
pydotplus>=2.0.2
pyod==0.7.5
pyparsing==2.4.7
pyzmq==19.0.1
regex==2020.6.8
requests==2.25.0
scikit-image>=0.16.2
scikit-learn==0.23.1
scipy==1.5.0
seaborn>=0.10.1
setuptools>=47.3.1
sklearn>=0.0
SQLAlchemy==1.3.17
statsmodels==0.11.1
stumpy==1.5.1
tabulate==0.8.5
terminado>=0.8.3
torch>=1.3.1
tornado>=6.0.4
urllib3==1.26.2
watson-developer-cloud==2.10.1
wiotp-sdk>=0.11.0
xgboost>=0.72.1
ibm-cos-sdk==2.7.0
ibm-cos-sdk-core==2.7.0
ibm-cos-sdk-s3transfer==2.7.0
ibm_db==3.0.2
ibm-db-sa==0.3.5

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSRHPA","label":"IBM Maximo Application Suite"},"ARM Category":[{"code":"a8m3p000000hAeKAAU","label":"Maximo Application Suite->MAS Applications->Monitor"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5.0;8.6.0"}]

Document Information

Modified date:
26 October 2021

UID

ibm16508834