PyCharm 创建python project时,默认在项目路径下复制一份python的interpreter,导致PyCharm不去查找其他地方的资源包。所以,在创建项目时选择第2个,就会使用本地默认python路径下的interpreter。
已创建的项目的解决办法:File->setings->python interpreter->add->system interpreter->选择你本地按照的python路径,点OK,然后本地包就加载进来了。
PyCharm 创建python project时,默认在项目路径下复制一份python的interpreter,导致PyCharm不去查找其他地方的资源包。所以,在创建项目时选择第2个,就会使用本地默认python路径下的interpreter。
已创建的项目的解决办法:File->setings->python interpreter->add->system interpreter->选择你本地按照的python路径,点OK,然后本地包就加载进来了。