plain-sundown-25537
04/22/2021, 9:37 PMinterpreter_search_paths = ["<PATH>", "<CONDA_PREFIX>","<PYENV>"]
plain-sundown-25537
04/22/2021, 9:38 PMhundreds-father-404
04/22/2021, 9:40 PMplain-sundown-25537
04/22/2021, 9:40 PMplain-sundown-25537
04/22/2021, 9:41 PMplain-sundown-25537
04/22/2021, 9:41 PMplain-sundown-25537
04/22/2021, 9:41 PM❯ export |grep conda
CONDA_EXE=/Users/xx/opt/anaconda3/bin/conda
CONDA_PREFIX=/Users/xx/opt/anaconda3/envs/pants
CONDA_PREFIX_1=/Users/xx/opt/anaconda3
CONDA_PYTHON_EXE=/Users/xx/opt/anaconda3/bin/python
plain-sundown-25537
04/22/2021, 9:41 PMhundreds-father-404
04/22/2021, 9:43 PMplain-sundown-25537
04/22/2021, 9:46 PMplain-sundown-25537
04/22/2021, 9:47 PMhundreds-father-404
04/22/2021, 9:53 PMplain-sundown-25537
04/22/2021, 9:56 PM<CONDA_PREFIX>
in pants.toml
then it worked
3. I thought I fixed it but I removed <CONDA_PREFIX>
, and all cache (~/.cache/pants, .cache) - and it still worksplain-sundown-25537
04/22/2021, 9:56 PMplain-sundown-25537
04/22/2021, 9:57 PMhundreds-father-404
04/22/2021, 9:59 PMrm -rf .pids
to force Pantsd to restart. But yeah, Pants has no knowledge of what <CONDA_PREFIX>
is and will try interpreting that as a literal path, similar to /usr/bin/python
. Because no Python interpreter exists there, it gets essentially ignoredplain-sundown-25537
04/22/2021, 10:04 PM❯ which python
/Users/xx/opt/anaconda3/envs/pants/bin/python
plain-sundown-25537
04/22/2021, 10:05 PMplain-sundown-25537
04/22/2021, 10:05 PMpants
is env nameplain-sundown-25537
04/22/2021, 10:05 PMplain-sundown-25537
04/22/2021, 10:06 PMclean up