File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 55* Julia 1.0 or higher.
66* Python 3.5 or higher.
77
8- ## Install the Julia package
8+ ## Install the Julia package ` PythonCall `
99
1010``` julia
1111using Pkg
1212pkg " add PythonCall"
1313```
1414
15- ## Install the Python package (optional)
15+ ## Install the Python package ` juliacall ` (optional)
1616
1717This step is only required if you wish to call Julia from Python.
1818
19- Currently the Python package ` juliacall ` is shipped with the source of the Julia package, and must be
19+ Currently ` juliacall ` is shipped with the source of the Julia package, and must be
2020pip-installed manually. The following should work in most shells (including PowerShell):
2121
2222``` bash
23- pip install --upgrade $( julia -e " using PythonCall; print(dirname(dirname(pathof( PythonCall))) )" )
23+ pip install $( julia -e " using PythonCall; print(PythonCall.juliacall_pipdir )" )
2424```
2525
26- The package has no dependencies, so you can also just copy it to somewhere in your PYTHONPATH.
26+ Alternatively you can just copy the package (at ` PythonCall.juliacall_dir ` ) to somewhere in your PYTHONPATH.
2727
2828Note that this is a [ very small] ( https://github.com/cjdoris/PythonCall.jl/blob/master/juliacall/__init__.py )
2929"bootstrap" package whose sole job is to locate and load Julia; the main functionality is in
File renamed without changes.
Original file line number Diff line number Diff line change @@ -127,4 +127,7 @@ include("ipython.jl")
127127
128128include (" init.jl" )
129129
130+ const juliacall_pipdir = dirname (@__DIR__ )
131+ const juliacall_dir = joinpath (juliacall_pipdir, " juliacall" )
132+
130133end # module
You can’t perform that action at this time.
0 commit comments