Skip to content

Commit 620d259

Browse files
committed
Mention virtual environments support [ci skip]
1 parent a6e729a commit 620d259

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,18 @@ In [2]: %%julia
159159
|__/ |
160160
```
161161

162+
### Virtual environments
163+
164+
PyJulia can be used in Python virtual environments created by
165+
`virtualenv`, `venv`, and any tools wrapping them such as `pipenv`
166+
provided that Python executable used in such environments are
167+
identical to the one configured with PyCall. If this is not the case,
168+
initializing PyJulia (e.g., `import julia.Main`) prints an informative
169+
error message with detected paths to libjulia. See
170+
[PyCall documentation](https://github.com/JuliaPy/PyCall.jl) for how
171+
to configure Python executable.
172+
173+
Note that Python environment created by `conda` is not supported.
162174

163175
Troubleshooting
164176
---------------

0 commit comments

Comments
 (0)