把Python源码拷贝到一台新的电脑(已经安装了Python环境),发现在第三方库名称上操作ctrl+鼠标左键是提示Cannot find declaration to go to
二、另一种情况是安装过了此第三方库,但是依然出现Cannot find declaration to go to
1、右键点击左侧文件导航栏整个项目文件夹,然后右击选择 Mark Directory as -> Sources Root
File -> New Project
把Python源码拷贝到一台新的电脑(已经安装了Python环境),发现在第三方库名称上操作ctrl+鼠标左键是提示Cannot find declaration to go to
二、另一种情况是安装过了此第三方库,但是依然出现Cannot find declaration to go to
1、右键点击左侧文件导航栏整个项目文件夹,然后右击选择 Mark Directory as -> Sources Root
File -> New Project