PyCall does not use virtualenv
- Dominant language
- Julia
- Stars
- 1.5k
- Forks
- 186
- PR merge metrics
- No merged PRs in 30d
Description
I'm running Python 3.7.3 and Julia 1.1.1 (2019-05-16). I have a virtual environment set up for python and PyCall is unable to import the packages installed there. In addition, when I run
```julia
py"""import site
print(site.getsitepackages())"""
```
I get the site packages folder of my main install and not the environment one. I can also import packages if they are installed on my system's Python.
When adding PyCall I have my environment activated. I have also tried setting the ENV["PYTHON"] and running `Pkg.build("PyCall")` as well with no change.
I am on Windows 10.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the report on Windows 10 with Julia 1.1.1, Python 3.7.3, and an activated virtualenv, checking the PyCall build and the reported site.getsitepackages() result. Trace how PyCall selects Python and verify that imports resolve to the activated environment when the issue is fixed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia, python
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100