JuliaPy / JuliaPy/PyCall.jl

Update for pyenv environment creation on OSX

Offen
#597 2 Kommentare 8 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Julia
Sterne
1.5k
Forks
186
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I have tried the pyenv environment setup option in #122 but it did not work for me. I was not able to generate the shared library and PyCall was giving the error

```
ImportError: No module named site
```

Instead, the following command worked

```
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.6.5
```

The difference is to use `--enable-shared` instead of `--enable-framework`. This is also described [here](https://github.com/pyenv/pyenv/wiki#how-to-build-cpython-with---enable-shared).

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Review the pyenv environment-setup instructions referenced by #122 and compare them with the reported working command on macOS. Done when the instructions use the appropriate option and explain the resulting PyCall setup without the reported ImportError.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
julia, macos, python
Bereich
documentation
Issue-Typ
Dokumentation
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.