PyCall does not use virtualenv
- Vorherrschende Sprache
- Julia
- Sterne
- 1.5k
- Forks
- 186
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- julia, python
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100