I’m trying to update from Python 3.6 to 3.8. I’ve installed Python through Anaconda. When I try to create the Knime environment I got the following error:
I manually installed numpy and pandas and the error went away. I thought the whole idea of creating a Knime environment was to automatically load the basic dependencies.
@rfeigel yes it is and most of the time it does work. No idea why sometimes it does not.
Using a separate yaml file gives you more control also. Concerning the repositories used for example.
Agree with yml file. And in my experience so far especially if you keep installing things and at some point need to update conda itself or python version, it will simply not work. So it is often easier to just delete and recreate the environment. But then important to document, what you installed after initial creation and adjust your yml accordingly.
@kienerj on a Windows machine you can (currently) see the YAML files used under:
that can help to build one’s own configuration. If you already have built an environment and want to save it in a ‘clean’ (reusable) way the way to go seems to be the
conda env export --from-history | grep -v “prefix” > environment.yaml
conda env export --from-history | findstr -v “prefix” > environment.yaml
under MacOSX the YML / YAML files can be found in a path like this:
The paths might change in further versions.A general article about KNIME, Python and conda environments:
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.