# Question about PyCall

**URL:** <https://discourse.julialang.org/t/question-about-pycall/45565>\
**Category:** General Usage\
**Tags:** question\
**Created:** [August 26, 2020, 9:38am UTC](https://discourse.julialang.org/t/question-about-pycall/45565 "2020-08-26T09:38:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)\
**Post date:** [August 26, 2020, 9:38am UTC](https://discourse.julialang.org/t/question-about-pycall/45565/1 "2020-08-26T09:38:08Z")

</div>

this is my code :

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

```

this is the error:

```julia
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 Pkg.build("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!

---

<div class="post-metadata">

**Author:** ![sswatson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sswatson/32/5135_2.png) [@sswatson](https://discourse.julialang.org/u/sswatson)\
**Post date:** [August 26, 2020, 11:52am UTC](https://discourse.julialang.org/t/question-about-pycall/45565/2 "2020-08-26T11:52:41Z")

</div>

Taking a look at [this issue](https://github.com/JuliaPy/Conda.jl/issues/165) 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.

---

<div class="post-metadata">

**Author:** ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)\
**Post date:** [August 26, 2020, 2:15pm UTC](https://discourse.julialang.org/t/question-about-pycall/45565/3 "2020-08-26T14:15:59Z")

</div>

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