I created a virtual environment with venv.
venv --python=/workspace/dev/python3.9 /var_path/var_virtual_env
In Visual Studio Code(portable version -Linux) I have set:
"python.venvPath": "/var_path/var_virtual_env",
"python.formatting.provider": "black"
The environment is seen in VSCode:
Code with python built-ins works without a problem.
From VS Code terminal with virtual environment activated using pip I installed different packages and I expected 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.
Also I noticed that the configurations likepylint.d etc are at same location in "local". The pylint was set thru VSCode.
To fix it I installed the packages in the environment outside VSCode, but the editor doesn't sees them. Example httpx:
But they are in the environment, pip freeze output:
How can I fix this ?




