adversarial-robustness-toolbox
adversarial-robustness-toolbox copied to clipboard
Package cannot be imported after installing with pip
Describe the bug I have been trying to install the package and continually find errors when importing the package after install. While I have encountered a number of different errors, this is the simplest and most reproducible.
To Reproduce Steps to reproduce the behavior:
- Create a new python environment via
python -m venv venvand activate it - Install via pip:
pip install "adversarial-robustness-toolbox(Note: I encounter the same problem when supplying the xgboost option as well. If I use thealloption, I immediately get errors with installation) - Run python via command line or from a file containing
import art(also works withfrom art import ...) - See error
ImportError: cannot import name 'packaging' from 'pkg_resources' (/path/to/venv/lib/python3.12/site-packages/pkg_resources/__init__.py)
Expected behavior The package loads without errors
System information (please complete the following information):
- OS: Mac OS Sonoma 14.5
- Python version: 3.12.3
- ART version or commit number: 1.17.1