Python Virtualenvs
#5348
-
Hello folks! Amazing work! Thanks a lot (= |
Beta Was this translation helpful? Give feedback.
Answered by
kirawi
Dec 30, 2022
Replies: 2 comments 12 replies
-
Aren't virtualenvs related to the LSP instead? |
Beta Was this translation helpful? Give feedback.
12 replies
Answer selected by
IceS2
-
Just in case someone needs this later, I made a small change to make it also work for conda: if [[ $VIRTUAL_ENV ]]; then
python_path="${VIRTUAL_ENV}/bin/python"
elif [[ $CONDA_PREFIX ]] ; then
python_path="${CONDA_PREFIX}/bin/python"
else
python_path="python"
fi
export PYTHONPATH=python_path |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Aren't virtualenvs related to the LSP instead?