- You have to install the packages you want coc-pyright to find inside an actual environment, the default/base environment doesn't work for me.
- Then create the following file to your project root:
- pyrightconfig.json and obviously change paths to your miniconda/anaconda install and environment name:
{
"venvPath": "/Users/Hans/miniconda3/envs",
"venv": "py38"
}
- Where
venvPath
is the path to the directory of the conda environments and venv
is the name of the environment. - Now install packages inside this environment, and they should be found by coc-pyright!