JuliaPy / JuliaPy/PyCall.jl

PyCall does not use virtualenv

Ouverte
#706 12 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Julia
Étoiles
1.5k
Forks
186
Métriques de merge des PR
Aucune PR mergée en 30 j

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
julia, python
Domaine
devtools
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.