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

Python3 Virtual Environment Support #431

Closed
arocks opened this issue Jan 1, 2015 · 4 comments
Closed

Python3 Virtual Environment Support #431

arocks opened this issue Jan 1, 2015 · 4 comments

Comments

@arocks
Copy link

arocks commented Jan 1, 2015

Hi, I use Arch Linux which has standardized on Python 3. Since python 3 has a different virtual environment system pyvenv built-in; can you suggest how we can point elpy to use this environment?

Thanks!

@ChillarAnand
Copy link
Contributor

elpy uses pvenv.el to manage venvs. It has pyvenv-activate function to activate venv.

So, You can do

M-x pyvenv-activate RET /path/to/your/venv/ RET

to activate required env.

If you are using projectile, You can use projectile-switch-project-hook to auto activate venv on switching project.

@arocks
Copy link
Author

arocks commented Jan 2, 2015

Yes, I did try pyvenv-activate and it returned a post activation error. It seems like mkvirtualenv wrapper is assumed to be installed.

For the record I solved the problem by doing a system wide install. But I would like to know if there is support for pyvenv.

@jorgenschaefer
Copy link
Owner

Thank you for the report and sorry for not responding earlier, I was on vacation.

This is indeed a bug – pyvenv should not fail if virtualenvwrapper is not installed.

@jorgenschaefer
Copy link
Owner

Closing this issue as it is a problem in pyvenv. See jorgenschaefer/pyvenv#24 for an issue to track this bug.

@jorgenschaefer jorgenschaefer added this to the v1.19 milestone Mar 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants