Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Oct 19, 2024
1 parent 11b285d commit b55d25e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 13 additions & 4 deletions docs/src/tutorials/pytorch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,24 @@
# over how to link Julia to an existing Python environment. For example, if you
# have an existing Python installation (with PyTorch installed), and it is
# available in the current conda environment, set:

ENV["JULIA_CONDAPKG_BACKEND"] = "Current"

#
# ```julia
# ENV["JULIA_CONDAPKG_BACKEND"] = "Current"
# ```
#
# before importing PythonCall.jl. If the Python installation can be found on
# the path and it is not in a conda environment, set:

#
# ```julia
# ENV["JULIA_CONDAPKG_BACKEND"] = "Null"
# ```
#
# If `python` is not on your path, you may additionally need to set
# `JULIA_PYTHONCALL_EXE`, for example, to:
#
# ```julia
# ENV["JULIA_PYTHONCALL_EXE"] = "python3"
# ```

# ## Required packages

Expand Down
2 changes: 0 additions & 2 deletions test/test_PythonCall.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import PythonCall
is_test(x) = startswith(string(x), "test_")

function runtests()
@show ENV["JULIA_CONDAPKG_BACKEND"]
@show ENV["JULIA_PYTHONCALL_EXE"]
# If we're running the tests locally, allow skipping Python tests
if get(ENV, "CI", "false") == "false"
try
Expand Down

0 comments on commit b55d25e

Please sign in to comment.