@@ -35,7 +35,7 @@ private to Julia (not in your `PATH`). You can use the `Conda` Julia
35
35
package to install more Python packages, and ` import Conda ` to print
36
36
the ` Conda.PYTHONDIR ` directory where ` python ` was installed.
37
37
On GNU/Linux systems, PyCall will default to using
38
- the ` python ` program (if any) in your PATH.
38
+ the ` python3 ` program (if any, otherwise ` python ` ) in your PATH.
39
39
40
40
The advantage of a Conda-based configuration is particularly
41
41
compelling if you are installing PyCall in order to use packages like
@@ -48,7 +48,7 @@ your own packages, use the `pyimport_conda` function described below.)
48
48
49
49
If you want to use a different version of Python than the default, you
50
50
can change the Python version by setting the ` PYTHON ` environment variable
51
- to the path of the ` python ` executable and then re-running ` Pkg.build("PyCall") ` .
51
+ to the path of the ` python ` (or ` python3 ` etc.) executable and then re-running ` Pkg.build("PyCall") ` .
52
52
In Julia:
53
53
54
54
ENV["PYTHON"] = "... path of the python program you want ..."
@@ -251,7 +251,7 @@ a NumPy array (currently of numeric types or objects only). Just use
251
251
` PyArray ` as the return type of a ` pycall ` returning an ` ndarray ` , or
252
252
call ` PyArray(o::PyObject) ` on an ` ndarray ` object ` o ` . (Technically,
253
253
a ` PyArray ` works for any Python object that uses the NumPy array
254
- interface to provide a data pointer and shape information.)
254
+ interface to provide a data pointer and shape information.)
255
255
256
256
Conversely, when passing arrays * to* Python, Julia ` Array ` types are
257
257
converted to ` PyObject ` types * without* making a copy via NumPy,
@@ -336,7 +336,7 @@ and also by providing more type information to the Julia compiler.
336
336
Python object reference, or of ` PyAny ` to request an automated conversion).
337
337
For convenience, a macro ` @pycall ` exists which automatically converts
338
338
` @pycall function(args...)::returntype ` into
339
- ` pycall(function,returntype,args...) ` .
339
+ ` pycall(function,returntype,args...) ` .
340
340
341
341
* ` pyimport(s) ` : Import the Python module ` s ` (a string or symbol) and
342
342
return a pointer to it (a ` PyObject ` ). Functions or other symbols
0 commit comments