Thursday, 17 June 2021

VS Code portable on Linux is still using for packages local user folder instead of the enviroment folder, and because of that imports fail

In Visual Studio Code(portable version -Linux) I have set:

"python.venvPath": "/var_path/var_virtual_env",

I install thru pip from VS Code terminal with virtual environment activated different packages and I expect the packages to be imported in the virtual environment, but instead seems that they are installed in the/home/user_name/local/lib/python3.6.

python3.6 is my OS default python version, my env is 3.9.

Because is not working I import the packages, outside VSCode, in the virtual environment, but the VSCode editor doesn't see them in both cases.

Code with python built-ins works without a problem.

Also I noticed that the configurations likepylint.d etc are at same location in "local". The pylint was set thru VSCode.

How can I fix this ?



from VS Code portable on Linux is still using for packages local user folder instead of the enviroment folder, and because of that imports fail

No comments:

Post a Comment