Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Conda and Library/bin Path #83

Open
dsyzling opened this issue Jan 9, 2019 · 0 comments
Open

Windows Conda and Library/bin Path #83

dsyzling opened this issue Jan 9, 2019 · 0 comments

Comments

@dsyzling
Copy link

dsyzling commented Jan 9, 2019

I've been using elpy/pyenv with conda under Windows. One issue I found is with
packages/libraries that require runtime Windows dlls. Conda seems to install
these within the virtual environment under env/Library/bin, however this path
is not added to the emacs process path when activating the virtualenv. I can
work around this with changes to pyvenv-activate, something like:

(new-directories (append
                  ;; Unix
                  (when (file-exists-p (format "%s/bin" directory))
                    (list (format "%s/bin" directory)))
                  ;; Windows
                  (when (file-exists-p (format "%s/Scripts" directory))
                    (list (format "%s/Scripts" directory)
                          ;; Package dlls to be loaded at runtime under windows.
                          (when (file-exists-p(format "%s/Library/bin" directory))
                            (format "%s/Library/bin" directory))
                          ;; Apparently, some virtualenv
                          ;; versions on windows put the
                          ;; python.exe in the virtualenv root
                          ;; for some reason?
                          directory))))

Does anyone know if this is valid for the Windows platform or am I missing something?

I have this working with PyCharm (although PyCharm must be started from the
Anaconda prompt due to not having the virtualenv/Library/bin directory added to
the path) and VS Code (which does appear to support the conda environment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant