Question about PyCall

this is my code :

using PyCall, Conda
pyexec = pyimport("KMeans_elbow")

this is the error:

ERROR: LoadError: PyError (PyImport_ImportModule

The Python package KMeans_elbow could not be found by pyimport. Usually this means
that you did not install KMeans_elbow in the Python version being used by PyCall.

PyCall is currently configured to use the Julia-specific Python distribution
installed by the Conda.jl package.  To install the KMeans_elbow module, you can
use `pyimport_conda("KMeans_elbow", PKG)`, where PKG is the Anaconda
package the contains the module KMeans_elbow, or alternatively you can use the
Conda package directly (via `using Conda` followed by `Conda.add` etcetera).

Alternatively, if you want to use a different Python distribution on your
system, such as a system-wide Python (as opposed to the Julia-specific Python),
you can re-configure PyCall with that Python.   As explained in the PyCall
documentation, set ENV["PYTHON"] to the path/name of the python executable
you want to use, run"PyCall"), and re-launch Julia.

) <class 'ModuleNotFoundError'>
ModuleNotFoundError("No module named 'KMeans_elbow'")

How do you use PyCall to call Pkg in Python (on Github)?thanks!

Taking a look at this issue might be helpful. I’m pretty sure you’re going to have to pip install the package from GitHub, and according to the discussion in that issue there isn’t direct support for that in Conda.jl.

I’m a green hand at this.I’m still not sure how to do it.(For “PIP Install” you said)