When I attempt to install the tool but encounter the dependency conflict like below:
(base) jimmy@Jimmys-MacBook-Air Asset-Management-Topic-Modeling % pip install -r requirements.txt
Collecting topicmodeltuner==0.3.4
Using cached topicmodeltuner-0.3.4-py3-none-any.whl (27 kB)
Collecting wandb==0.13.10
Using cached wandb-0.13.10-py3-none-any.whl (2.0 MB)
Collecting loguru
Using cached loguru-0.6.0-py3-none-any.whl (58 kB)
Collecting bertopic>=v0.10.0
Using cached bertopic-0.14.1-py2.py3-none-any.whl (120 kB)
Requirement already satisfied: Click!=8.0.0,>=7.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from wandb==0.13.10->-r requirements.txt (line 2)) (8.1.3)
Collecting GitPython>=1.0.0
Using cached GitPython-3.1.31-py3-none-any.whl (184 kB)
Requirement already satisfied: requests<3,>=2.0.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from wandb==0.13.10->-r requirements.txt (line 2)) (2.28.1)
Requirement already satisfied: psutil>=5.0.0 in /Users/jimmy/Library/Python/3.11/lib/python/site-packages (from wandb==0.13.10->-r requirements.txt (line 2)) (5.9.4)
Collecting sentry-sdk>=1.0.0
Using cached sentry_sdk-1.16.0-py2.py3-none-any.whl (184 kB)
Collecting docker-pycreds>=0.4.0
Using cached docker_pycreds-0.4.0-py2.py3-none-any.whl (9.0 kB)
Requirement already satisfied: PyYAML in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from wandb==0.13.10->-r requirements.txt (line 2)) (6.0)
Collecting pathtools
Using cached pathtools-0.1.2.tar.gz (11 kB)
Preparing metadata (setup.py) ... done
Collecting setproctitle
Using cached setproctitle-1.3.2-cp311-cp311-macosx_10_9_universal2.whl (16 kB)
Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from wandb==0.13.10->-r requirements.txt (line 2)) (65.5.0)
Collecting appdirs>=1.4.3
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting protobuf!=4.21.0,<5,>=3.19.0
Using cached protobuf-4.22.0-cp37-abi3-macosx_10_9_universal2.whl (397 kB)
Requirement already satisfied: numpy>=1.20.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from bertopic>=v0.10.0->topicmodeltuner==0.3.4->-r requirements.txt (line 1)) (1.23.5)
Collecting hdbscan>=0.8.29
Using cached hdbscan-0.8.29.tar.gz (5.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting umap-learn>=0.5.0
Using cached umap-learn-0.5.3.tar.gz (88 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: pandas>=1.1.5 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from bertopic>=v0.10.0->topicmodeltuner==0.3.4->-r requirements.txt (line 1)) (1.5.2)
Collecting scikit-learn>=0.22.2.post1
Using cached scikit_learn-1.2.1-cp311-cp311-macosx_12_0_arm64.whl (8.4 MB)
Requirement already satisfied: tqdm>=4.41.1 in /Users/jimmy/Library/Python/3.11/lib/python/site-packages (from bertopic>=v0.10.0->topicmodeltuner==0.3.4->-r requirements.txt (line 1)) (4.64.1)
Collecting sentence-transformers>=0.4.1
Using cached sentence-transformers-2.2.2.tar.gz (85 kB)
Preparing metadata (setup.py) ... done
Collecting plotly>=4.7.0
Using cached plotly-5.13.1-py2.py3-none-any.whl (15.2 MB)
Requirement already satisfied: six>=1.4.0 in /Users/jimmy/Library/Python/3.11/lib/python/site-packages (from docker-pycreds>=0.4.0->wandb==0.13.10->-r requirements.txt (line 2)) (1.16.0)
Collecting gitdb<5,>=4.0.1
Using cached gitdb-4.0.10-py3-none-any.whl (62 kB)
Requirement already satisfied: charset-normalizer<3,>=2 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests<3,>=2.0.0->wandb==0.13.10->-r requirements.txt (line 2)) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests<3,>=2.0.0->wandb==0.13.10->-r requirements.txt (line 2)) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests<3,>=2.0.0->wandb==0.13.10->-r requirements.txt (line 2)) (1.26.13)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests<3,>=2.0.0->wandb==0.13.10->-r requirements.txt (line 2)) (2022.12.7)
Collecting smmap<6,>=3.0.1
Using cached smmap-5.0.0-py3-none-any.whl (24 kB)
Collecting cython>=0.27
Using cached Cython-0.29.33-py2.py3-none-any.whl (987 kB)
Collecting scipy>=1.0
Using cached scipy-1.10.1-cp311-cp311-macosx_12_0_arm64.whl (28.7 MB)
Requirement already satisfied: joblib>=1.0 in /Users/jimmy/Library/Python/3.11/lib/python/site-packages (from hdbscan>=0.8.29->bertopic>=v0.10.0->topicmodeltuner==0.3.4->-r requirements.txt (line 1)) (1.2.0)
Requirement already satisfied: python-dateutil>=2.8.1 in /Users/jimmy/Library/Python/3.11/lib/python/site-packages (from pandas>=1.1.5->bertopic>=v0.10.0->topicmodeltuner==0.3.4->-r requirements.txt (line 1)) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from pandas>=1.1.5->bertopic>=v0.10.0->topicmodeltuner==0.3.4->-r requirements.txt (line 1)) (2022.6)
Collecting tenacity>=6.2.0
Using cached tenacity-8.2.2-py3-none-any.whl (24 kB)
Collecting threadpoolctl>=2.0.0
Using cached threadpoolctl-3.1.0-py3-none-any.whl (14 kB)
Collecting transformers<5.0.0,>=4.6.0
Using cached transformers-4.26.1-py3-none-any.whl (6.3 MB)
Collecting sentence-transformers>=0.4.1
Using cached sentence-transformers-2.2.1.tar.gz (84 kB)
Preparing metadata (setup.py) ... done
Using cached sentence-transformers-2.2.0.tar.gz (79 kB)
Preparing metadata (setup.py) ... done
Using cached sentence-transformers-2.1.0.tar.gz (78 kB)
Preparing metadata (setup.py) ... done
Collecting tokenizers>=0.10.3
Using cached tokenizers-0.13.2-cp311-cp311-macosx_12_0_arm64.whl (3.7 MB)
Collecting sentence-transformers>=0.4.1
Using cached sentence-transformers-2.0.0.tar.gz (85 kB)
Preparing metadata (setup.py) ... done
Using cached sentence-transformers-1.2.1.tar.gz (80 kB)
Preparing metadata (setup.py) ... done
Using cached sentence-transformers-1.2.0.tar.gz (81 kB)
Preparing metadata (setup.py) ... done
Using cached sentence-transformers-1.1.1.tar.gz (81 kB)
Preparing metadata (setup.py) ... done
Using cached sentence-transformers-1.1.0.tar.gz (78 kB)
Preparing metadata (setup.py) ... done
Using cached sentence-transformers-1.0.4.tar.gz (74 kB)
Preparing metadata (setup.py) ... done
Using cached sentence-transformers-1.0.3.tar.gz (74 kB)
Preparing metadata (setup.py) ... done
Using cached sentence-transformers-1.0.2.tar.gz (74 kB)
Preparing metadata (setup.py) ... done
Using cached sentence-transformers-1.0.1.tar.gz (74 kB)
Preparing metadata (setup.py) ... done
Using cached sentence-transformers-1.0.0.tar.gz (74 kB)
Preparing metadata (setup.py) ... done
Using cached sentence-transformers-0.4.1.2.tar.gz (64 kB)
Preparing metadata (setup.py) ... done
Using cached sentence-transformers-0.4.1.1.tar.gz (64 kB)
Preparing metadata (setup.py) ... done
Using cached sentence-transformers-0.4.1.tar.gz (64 kB)
Preparing metadata (setup.py) ... done
INFO: pip is looking at multiple versions of scikit-learn to determine which version is compatible with other requirements. This could take a while.
Collecting scikit-learn>=0.22.2.post1
Using cached scikit_learn-1.2.0-cp311-cp311-macosx_12_0_arm64.whl (8.3 MB)
INFO: pip is looking at multiple versions of plotly to determine which version is compatible with other requirements. This could take a while.
Collecting plotly>=4.7.0
Using cached plotly-5.13.0-py2.py3-none-any.whl (15.2 MB)
INFO: pip is looking at multiple versions of pandas to determine which version is compatible with other requirements. This could take a while.
Collecting pandas>=1.1.5
Using cached pandas-1.5.3-cp311-cp311-macosx_11_0_arm64.whl (10.8 MB)
INFO: pip is looking at multiple versions of numpy to determine which version is compatible with other requirements. This could take a while.
Collecting numpy>=1.20.0
Using cached numpy-1.24.2-cp311-cp311-macosx_11_0_arm64.whl (13.8 MB)
INFO: pip is looking at multiple versions of idna to determine which version is compatible with other requirements. This could take a while.
Collecting idna<4,>=2.5
Using cached idna-3.4-py3-none-any.whl (61 kB)
INFO: pip is looking at multiple versions of hdbscan to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of gitdb to determine which version is compatible with other requirements. This could take a while.
Collecting gitdb<5,>=4.0.1
Using cached gitdb-4.0.9-py3-none-any.whl (63 kB)
INFO: pip is looking at multiple versions of charset-normalizer to determine which version is compatible with other requirements. This could take a while.
Collecting charset-normalizer<3,>=2
Using cached charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
INFO: pip is looking at multiple versions of certifi to determine which version is compatible with other requirements. This could take a while.
Collecting certifi>=2017.4.17
Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
INFO: pip is looking at multiple versions of setproctitle to determine which version is compatible with other requirements. This could take a while.
Collecting setproctitle
Using cached setproctitle-1.3.1.tar.gz (27 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
INFO: pip is looking at multiple versions of pyyaml to determine which version is compatible with other requirements. This could take a while.
Collecting PyYAML
Using cached PyYAML-6.0-cp311-cp311-macosx_11_0_arm64.whl (167 kB)
INFO: pip is looking at multiple versions of pathtools to determine which version is compatible with other requirements. This could take a while.
Collecting pathtools
Using cached pathtools-0.1.1.tar.gz (41 kB)
Preparing metadata (setup.py) ... done
INFO: pip is looking at multiple versions of loguru to determine which version is compatible with other requirements. This could take a while.
Collecting loguru
Using cached loguru-0.5.3-py3-none-any.whl (57 kB)
INFO: pip is looking at multiple versions of sentry-sdk to determine which version is compatible with other requirements. This could take a while.
Collecting sentry-sdk>=1.0.0
Using cached sentry_sdk-1.15.0-py2.py3-none-any.whl (181 kB)
INFO: pip is looking at multiple versions of requests to determine which version is compatible with other requirements. This could take a while.
Collecting requests<3,>=2.0.0
Using cached requests-2.28.2-py3-none-any.whl (62 kB)
INFO: pip is looking at multiple versions of psutil to determine which version is compatible with other requirements. This could take a while.
Collecting psutil>=5.0.0
Using cached psutil-5.9.4-cp38-abi3-macosx_11_0_arm64.whl (244 kB)
INFO: pip is looking at multiple versions of protobuf to determine which version is compatible with other requirements. This could take a while.
Collecting protobuf!=4.21.0,<5,>=3.19.0
Using cached protobuf-4.21.12-cp37-abi3-macosx_10_9_universal2.whl (486 kB)
INFO: pip is looking at multiple versions of gitpython to determine which version is compatible with other requirements. This could take a while.
Collecting GitPython>=1.0.0
Using cached GitPython-3.1.30-py3-none-any.whl (184 kB)
INFO: pip is looking at multiple versions of docker-pycreds to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of click to determine which version is compatible with other requirements. This could take a while.
Collecting Click!=8.0.0,>=7.0
Using cached click-8.1.3-py3-none-any.whl (96 kB)
INFO: pip is looking at multiple versions of bertopic to determine which version is compatible with other requirements. This could take a while.
Collecting bertopic>=v0.10.0
Using cached bertopic-0.14.0-py2.py3-none-any.whl (119 kB)
Using cached bertopic-0.13.0-py2.py3-none-any.whl (103 kB)
Collecting PyYAML
Using cached PyYAML-5.4.1.tar.gz (175 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting bertopic>=v0.10.0
Using cached bertopic-0.12.0-py2.py3-none-any.whl (90 kB)
Using cached bertopic-0.11.0-py2.py3-none-any.whl (76 kB)
Using cached bertopic-0.10.0-py2.py3-none-any.whl (58 kB)
INFO: pip is looking at multiple versions of appdirs to determine which version is compatible with other requirements. This could take a while.
Collecting appdirs>=1.4.3
Using cached appdirs-1.4.3-py2.py3-none-any.whl (12 kB)
INFO: pip is looking at multiple versions of bertopic to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of wandb to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of topicmodeltuner to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install bertopic because these package versions have conflicting dependencies.
The conflict is caused by:
sentence-transformers 2.2.2 depends on torch>=1.6.0
sentence-transformers 2.2.1 depends on torch>=1.6.0
sentence-transformers 2.2.0 depends on torch>=1.6.0
sentence-transformers 2.1.0 depends on torch>=1.6.0
sentence-transformers 2.0.0 depends on torch>=1.6.0
sentence-transformers 1.2.1 depends on torch>=1.6.0
sentence-transformers 1.2.0 depends on torch>=1.6.0
sentence-transformers 1.1.1 depends on torch>=1.6.0
sentence-transformers 1.1.0 depends on torch>=1.6.0
sentence-transformers 1.0.4 depends on torch>=1.6.0
sentence-transformers 1.0.3 depends on torch>=1.6.0
sentence-transformers 1.0.2 depends on torch>=1.6.0
sentence-transformers 1.0.1 depends on torch>=1.6.0
sentence-transformers 1.0.0 depends on torch>=1.6.0
sentence-transformers 0.4.1.2 depends on torch>=1.6.0
sentence-transformers 0.4.1.1 depends on torch>=1.6.0
sentence-transformers 0.4.1 depends on torch>=1.6.0
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
(base) jimmy@Jimmys-MacBook-Air Asset-Management-Topic-Modeling % python -c "import torch; print(torch.__version__)"
1.13.1