python - Visual Studio Code can import only modules installed in python, but not in a virtual environment
问题描述
This is the imports section of a python script:
As you can see, some of the imports are marked as unresolved by VSC. The only way to avoid this is by installing such modules in general python.
How can I instruct VSC to use a virtual environment where all these modules are already installed?
解决方案
推荐阅读
- python - 在 HDFS 中为 Livy PySpark 存储 Python 包
- r - 创建一个包含数据框行 ID 的向量
- python - 提高 StopIteration - 不能在我的 MongoDB 上使用可尾光标
- python - 连接到 Aster Teradata Python
- node.js - TypeError:无法将属性“标题”设置为 null
- sql-server - 如何修复不完整的数据/日志
- python - 如何在不需要导入的情况下跨所有模块定义变量?
- c++ - C 或 C++ 中的一元运算符,用于数字的二次方
- excel - 查找特定范围内的最后一行
- ios - 在 Firebase 身份验证 Xamarin 中访问 UID 时出错