[Network Tutorial] Solve the problems encountered by Pycharm to VSCode (pipenv interpreter settings, python guide custom package error)


set interpreter

If you are like me, using the pipenv virtual environment, when we switch to using vscode to run the code, an error will be reported, and the corresponding package cannot be found. At this time, we make the following settings

  • Use the shortcut key Ctrl + Shift +Pto open the command input box, search in the input box 解释器 或 interpreter, and then select python解释器, as shown in the figure below
    select interpreter
  • Then there will be corresponding pipenv虚拟环境ones for you to choose (these are the ones I created in pycharm earlier), as shown below
    pipenv virtual environment
  • Just choose the environment you need!
  • Plugins can also be installed Python Environment Managerto manage our virtual environment

Guess you like

Origin blog.csdn.net/xiaoqiangclub/article/details/125140011