Hans Pinckaers — Public notes

A collection of short public notes exported from my private tiddlywiki. Find an overview of all notes here. Feedback? You can reach me at mail@hanspinckaers.com.

Fixing coc-pyright and anaconda import errors

hanspinckaers updated 2 days ago created: 16 November 2020
Public Vim
  • 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!