Can't install latest version on macOS
See original GitHub issueDescribe the bug
I follow the installation guide to install Ludwig using a virtual environment. But the version I can only install is 0.1.0.
I try to use pip install --upgrade ludwig
, but the ludwig version didn’t change
and I try to use ludwig experiment
like the first example, it’s also not working.
To Reproduce Steps to reproduce the behavior:
virtualenv -p python3 venv
- (after activate virtual environment)
pip install ludwig
pip list
to check the version of ludwig, it shows 0.1.0- try cmd
ludwig train
, it said: "ModuleNotFoundError: No module named ‘tensorflow.contrib’ " - try cmd
ludwig experiment
, it said: "ModuleNotFoundError: No module named ‘tensorflow.contrib’ "
Expected behavior install latest version of ludwig and run successfully
Screenshots % ludwig experiment \
–dataset text_example.csv
–config_file config.yaml Traceback (most recent call last): File “/Users/vyue/Desktop/folder1/venv/bin/ludwig”, line 5, in <module> from ludwig.cli import main File “/Users/vyue/Desktop/folder1/venv/lib/python3.9/site-packages/ludwig/init.py”, line 16, in <module> from ludwig.api import LudwigModel File “/Users/vyue/Desktop/folder1/venv/lib/python3.9/site-packages/ludwig/api.py”, line 39, in <module> from ludwig.data.postprocessing import postprocess_df, postprocess File “/Users/vyue/Desktop/folder1/venv/lib/python3.9/site-packages/ludwig/data/postprocessing.py”, line 19, in <module> from ludwig.features.feature_registries import output_type_registry File “/Users/vyue/Desktop/folder1/venv/lib/python3.9/site-packages/ludwig/features/feature_registries.py”, line 25, in <module> from ludwig.features.bag_feature import BagBaseFeature File “/Users/vyue/Desktop/folder1/venv/lib/python3.9/site-packages/ludwig/features/bag_feature.py”, line 24, in <module> from ludwig.features.base_feature import BaseFeature File “/Users/vyue/Desktop/folder1/venv/lib/python3.9/site-packages/ludwig/features/base_feature.py”, line 21, in <module> from ludwig.models.modules.recurrent_modules import reduce_sequence File “/Users/vyue/Desktop/folder1/venv/lib/python3.9/site-packages/ludwig/models/modules/recurrent_modules.py”, line 20, in <module> from tensorflow.contrib.rnn import MultiRNNCell, LSTMStateTuple ModuleNotFoundError: No module named ‘tensorflow.contrib’
Environment (please complete the following information):
- OS: macOS Big Sur
- Version 11.4
- Python version 3.9.5
- Ludwig version 0.1.0
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10
Top GitHub Comments
@jimthompson5802 Thanks for the help. I try python 3.8 and it works!
@victoriayue I may have an explanation.
the
tfa-nightly
dependency is for thetensorflow_addons
package. It appears that this version of the package was built for only Python 3.6, 3.7 and 3.8. Here is a screenshot of the available downloads for this version of the tensorflow_addons package:As you can see there is no package file with the designation of
cp39
(aka Python 3.9). The highest iscp38
(aka Python 3.8).From your initial posting, you indicated your Python version is 3.9. To install Ludwig 0.3.3, you’ll have to create a virtual environment with Python 3.8 and install Ludwig in there. FWIW…I’ve been using Python 3.6 without issues.
Let me know if this makes sense and if it helps you install ludwig.