Install a library for all the virtualenvs #6771
-
|
Hi! I'm trying to use So I installed the library: The package is available when I'm not in a Poetry venv: When I'm in a Poetry environment I tried using this configuration: But the package is still not available. And it doesn't show up in the Any idea about what I should do? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
You want neovim to always use the same virtual environment, regardless of the virtual environment it is within, in my experience. To do so, you should create a virtual environment to install pynvim in: python3 -m venv ~/.config/nvim/venv
~/.config/nvim/venv/bin/pip install pynvimAnd then configure Vim to always use it: let g:python3_host_prog = "~/.config/nvim/venv/bin/python3"I'm a little rusty on specifics, but hopefully that puts you on the right track. |
Beta Was this translation helpful? Give feedback.
You want neovim to always use the same virtual environment, regardless of the virtual environment it is within, in my experience. To do so, you should create a virtual environment to install pynvim in:
And then configure Vim to always use it:
I'm a little rusty on specifics, but hopefully that puts you on the right track.