一、问题描述
按Ctrl+左键,不能进入类或方法,提示Cannot find declaration to go to

二、解决方法
- 右键点击左侧文件导航栏整个项目文件夹,然后右击选择
Mark Directory as
->Sources Root

- 点击
File
->Settings
进入设置界面

- 在设置界面点击
Python Interpreter
-><No interpreter>
->Python 3.9
->OK
完成

按Ctrl+左键,不能进入类或方法,提示Cannot find declaration to go to
- 右键点击左侧文件导航栏整个项目文件夹,然后右击选择
Mark Directory as
->Sources Root
- 点击
File
->Settings
进入设置界面
- 在设置界面点击
Python Interpreter
-><No interpreter>
->Python 3.9
->OK
完成
本文标题:【已解决】PyCharm 提示 Cannot find decl
本文链接:https://www.haomeiwen.com/subject/avgfnltx.html
网友评论