Open tim-tx opened 5 years ago
jupyter
is a metapackage that requires all of Jupyter (qtconsole, notebook, etc.). It is unlikely that any package should have a direct dependency on it.
If jupyter appears to not be installed, it is likely a problem with the installation system, and how the jupyter package was installed int he first place.
I have a package that uses setuptools and specifies in
setup.py
the lineinstall_requires=['scipy', 'matplotlib', 'numpy', 'graphviz', 'progressbar2', 'jupyter'],
. The package installs a script that has in itwhich fails with
pkg_resources.DistributionNotFound: The 'jupyter' distribution was not found and is required by my_pkg
.My distribution has a meta-package called jupyter that pulls in jupyter_core, jupyter_client, jupyter_console, ipython, and others. The plain "jupyter" package installs no files to the system, and no packages end up installing any files or folders with a name like
jupyter-<version>-{egg,dist}-info
into my system-widesite-packages
directory, and as far as I can tell this is whatpkg_resources
needs.pip install --user jupyter
I end up with${HOME}/.local/lib/python3.7/site-packages/jupyter-1.0.0.dist-info
and theDistributionNotFound
error goes away.dist-info
directory to my system-widesite-packages
and then dopip uninstall jupyter
, the error does not appear.jupyter-<version>-{egg,dist}-info
at the system or local level and replace thejupyter
withjupyter_core
in setup.py, I do not see an error.Is a package that requires
jupyter
misconfigured? Should it be asking forjupyter_core
? Or is this an issue with my distribution's packaging? If it helps, the installed and up-to-date version numbers with my distribution's jupyter packages are: