I am migrating from tf.keras.wrappers.scikit_learn to Scikeras. I have created a new fresh environment with python=3.7 (to be compatible with Tensorflow). Then I issue the command:
'pip install scikeras[tensorflow]' (ref. https://pypi.org/project/scikeras/)
but I get
'zsh: no matches found: scikeras[tensorflow]'
I therefore try with:
'pip install scikeras tensorflow'
which executes successfully.
When I execute
'import tensorflow'
in my notebook in an isolated cell, the kernel dies. (in another attempt I also tried 'pip install scikeras tensorflow==2.7 with the same result' ). I am using a M1 mac.
Has anyone managed to successfully install and use SciKeras?
Check this answer: https://stackoverflow.com/a/59259547/8691571 Excerpt:
Try running the code that is causing the kernel to die in a terminal or in ipython... common issue I have identified is the use of SSE4.1 in later versions of tensorflow... If this is the case, uninstall tensorflow and install with conda: conda install tensorflow==1.12.0, for instance.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.