text Pytho VSCode

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text Pytho VSCode相关的知识,希望对你有一定的参考价值。

if [ -n "${_OLD_VIRTUAL_PATH:-}" ]
then
  PATH="${_OLD_VIRTUAL_PATH:-}"
  export PATH
  unset _OLD_VIRTUAL_PATH
fi
if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ]
then
  PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
  export PYTHONHOME
  unset _OLD_VIRTUAL_PYTHONHOME
fi
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ]
then
  hash -r
fi
if [ -n "${_OLD_VIRTUAL_PS1:-}" ]
then
  PS1="${_OLD_VIRTUAL_PS1:-}"
  export PS1
  unset _OLD_VIRTUAL_PS1
fi
unset VIRTUAL_ENV
if [ ! "$1" = "nondestructive" ]
then
  unset -f deactivate
fi
# python virtualenv
bin/*
Scripts/*
include/*
lib/*
.vscode/*
pyvenv.cfg
pip-selfcheck.json
1. Create Env
python -m venv .

2. VSCode Workspace Settings
{
    "python.pythonPath": "${workspaceFolder}/Scripts/python.exe"
}

{
    "python.pythonPath": "${workspaceFolder}/bin/python"
}
3. Upgrade pip
.\scripts\pip install --upgrade pip
pip install --upgrade pip

./bin/pip install -U pylint 

4. Python Env.
echo 'source ./bin/activate'  > .autoenv.zsh

以上是关于text Pytho VSCode的主要内容,如果未能解决你的问题,请参考以下文章

在 VSCode 中调试 FastAPI 应用程序

Python编程(Web开发)工具分享 | VSCode | Navicat Premium | Pycharm

text VSCode密钥

text PowerShell开发的基本VSCode设置

text VsCode同步设置

text VSCode.config