Pyenv: install virtualenv in project directory

Created on 11 Jan 2017  路  3Comments  路  Source: pyenv/pyenv

Hi, I wonder if its possible to install the virtualenv on the projects directory instead of installing it in .pyenv/versions .
there are many tools that assume you have your venvs on the same directory like vscode.

Is there any flag I can add to pyenv virtualenv to do this?

Most helpful comment

I wish there would be a more "managed" way of doing this, rather than forcing users to make symlinks.

Does it work if you just install pip install virtualenv from inside pyenv?

All 3 comments

You can just create virtualenv in any location. To use it from pyenv, create symlink to the environment in ~/.pyenv/versions

In VS Code,you can just use ctrl +p then type python:select wordspace interpreter

I wish there would be a more "managed" way of doing this, rather than forcing users to make symlinks.

Does it work if you just install pip install virtualenv from inside pyenv?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

paugier picture paugier  路  3Comments

afeld picture afeld  路  3Comments

demba picture demba  路  3Comments

ydaniju picture ydaniju  路  3Comments

zeroxenator picture zeroxenator  路  3Comments