While trying to use SimpleHypergraphs.jl visualization tools which require hypernetx (a python library), I encountered an error while running the following (which comes from the README of SimpleHypergraphs.jl ):
using PyCall
using Conda
Conda.runconda(`install matplotlib --yes`)
Conda.runconda(`install networkx --yes`)
Conda.runconda(`install pandas --yes`)
run(`$(PyCall.python) -m pip install hypernetx`)
pyimport("hypernetx")
> ERROR: PyError (PyImport_ImportModule
> The Python package hypernetx could not be imported by pyimport. Usually, this means
> that you did not install hypernetx in the Python version being used by PyCall.[...]
Similarly doing using SimpleHypergraphs
gives me the following warning
┌ Warning: The plotting functionality of HyperNetX will not work! │ Conda Python HyperNetX not found.
The package is in my Conda environment and in my python environment (verified by running Conda.list()
and run(
$(PyCall.python) -m pip list)
respectively in the same Julia session).
Am I doing something wrong? If so, what am I supposed to do?
julia> versioninfo()
Julia Version 1.7.1
Commit ac5cc99908 (2021-12-22 19:35 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, skylake)