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

Can't find black when installed into venv #1

Closed
pzelnip opened this issue Mar 21, 2018 · 3 comments
Closed

Can't find black when installed into venv #1

pzelnip opened this issue Mar 21, 2018 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@pzelnip
Copy link

pzelnip commented Mar 21, 2018

I installed Black into a virtual environment, and every time I try to format I get:

Command "black" not found in PATH.  Try `pip install black`

If I install systemwide the error goes away. Would be nice to not have to install system-wide, much like I don't with tools like autopep8 or pylint.

@joslarson
Copy link
Owner

@pzelnip I'm assuming you want it to respect the Python environment set by the Python extension, is that right? I agree that's something that should be added. But as a work around, what I'm doing currently is launching vscode as a subprocess of a shell with my virtual environment activated.

@pzelnip
Copy link
Author

pzelnip commented Mar 21, 2018

Correct, I'd expect the python.pythonPath setting to be used.

@joslarson joslarson added the enhancement New feature or request label Mar 21, 2018
@joslarson joslarson self-assigned this Mar 21, 2018
@joslarson
Copy link
Owner

@pzelnip just published a fix for this. Thanks for the heads up :)

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

No branches or pull requests

2 participants