packages文件夹标记为红色

packages文件夹标记为红色

本文介绍了Pycharm site-packages文件夹标记为红色,无法导入模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过pip安装了一些文件(pygamepython-docx).它们出现在site-packages文件夹的pycharm中,但是我无法从该文件夹导入任何内容.我得到一个ModuleNotFoundError. site-packages文件夹和子文件夹都显示为红色.

I have installed some files (pygame, python-docx) through pip. They appear in pycharm in the site-packages folder, but I cannot import anything from that folder. I get a ModuleNotFoundError. The site-packages folder and sub-folders all appear as red.

有什么主意我应该做什么?

Any ideas what I should do?

我有python 3.7pycharm community edition 2018.2.3

推荐答案

尝试检查您当前的项目解释器是否正确:您应该看到安装了所有软件包的python环境的路径.如图所示.

Try to check if your current project interpreter is correct: you should see the path to your python environment where all packages are installedas shown in the picture.

Python解释器路径

这篇关于Pycharm site-packages文件夹标记为红色,无法导入模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 04:35