gpt4 book ai didi

Neovim does not recognize Python modules installed in a virtual environment(Neovim无法识别安装在虚拟环境中的Python模块)

转载 作者:bug小助手 更新时间:2023-10-22 15:47:05 33 4
gpt4 key购买 nike



I am using the AstroNvim configuration with pyright and pylint installed via Mason. Neovim doesn't recognize the imported modules installed via pip in a virtual environment, but it executes just fine.
I have the same problem whether I use Fedora or Debian.

我使用AstroNvim配置,通过Mason安装了版权所有和pylint。Neovim无法识别在虚拟环境中通过pip安装的导入模块,但它执行得很好。无论我使用Fedora还是Debian,我都有同样的问题。


I import installed modules in my Python virtual environment, it's raising an error but it executes fine.

我在Python虚拟环境中导入已安装的模块,这会引发一个错误,但执行良好。


更多回答

wild guess is that your vim config points to the python executable that is not inside your venv.

粗略的猜测是,你的vim配置指向了不在venv中的python可执行文件。

优秀答案推荐
更多回答

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com