【发布时间】:2018-11-03 16:22:05
【问题描述】:
我为 Python 安装了 IntelliSense。我卸载了它,但似乎安装了钢。这是我的文件结构:
websockets/
├── trades_btc_eur.py
└── functions
├── GracefulKiller.py
├── __init__.py
├── Logging.py
└── Websockets.py
我从 trades_btc_eur.py 中的functions 包中导入了一些函数:
from functions.Logging import create_logger
from functions.GracefulKiller import GracefulKiller
from functions.Websockets import ImprovedWebsocketClient
我可以在PROBLEMS 中看到这个错误:
Unable to resolve 'functions.Logging'. IntelliSense may be missing for this module.
Unable to resolve 'functions.GracefulKiller'. IntelliSense may be missing for this module.
Unable to resolve 'functions.Websockets'. IntelliSense may be missing for this module.
所有三行都有下划线。我尝试重新启动 VSC 和 PC,将 __init__.py 添加到 websockets 目录,升级到最新版本的 VSC。没有任何帮助。我在安装的扩展程序中没有看到它。程序运行良好,谁能解释我,如何摆脱IntelliSense?
【问题讨论】:
标签: python python-3.x visual-studio-code vscode-settings