简体   繁体   English

已安装在 PIP 中的模块未通过导入 function 出现在 PyCharm 中

[英]Modules that Have been installed in PIP not appearing in PyCharm via the import function

I have recently started learning Python using PyCharm on Windows 10. I am trying to use PIP to install modules (I have tried Pillow, Pygame and randomword). I have recently started learning Python using PyCharm on Windows 10. I am trying to use PIP to install modules (I have tried Pillow, Pygame and randomword). When I try to install these, PIP says that I was successful and the module comes up when I use Pip freeze .当我尝试安装这些时, PIP 说我成功了,当我使用Pip freeze时模块出现了。 However When I try to import them into Pycharm using the from import function.但是,当我尝试使用from import function 将它们导入 Pycharm 时。 The module is not found.未找到该模块。 I cannot locate the module in the LIB folder as well.我也无法在 LIB 文件夹中找到该模块。 What do I need to do to have these modules appear in python, Many Thanks,我需要做什么才能让这些模块出现在 python 中,非常感谢,

Did you make sure you installed the module with the right pip?你确定你用正确的 pip 安装了模块吗?

I mean, many people with have more than one python editor installed, and so, there will be multiple pips.我的意思是,很多人安装了不止一个 python 编辑器,所以会有多个点。

If you installed a module with the pip from IDLE-3.8, the module will only be installed for that IDLE-3.8. 如果您从 IDLE-3.8 安装了带有 pip 的模块,则只会为该 IDLE-3.8 安装该模块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到pip已经安装的模块 - Can't find the modules that have been installed by pip 我通过 pip 安装了 matplotlib,但是当我尝试将 matplotlib 导入 PyCharm 时出现错误 - I installed matplotlib via pip but when I try to import matplotlib to PyCharm I get an error Pycharm在windows上找不到pip安装的包或模块 - Pycharm cann't find the packages or modules installed with pip on windows 我已经通过 pip 安装了 pytz,但是“import pytz”抛出了一个模块未找到异常 - I have installed pytz via pip but "import pytz" throws a module not found exception Pycharm conda env没有显示通过pip安装的软件包 - Pycharm conda env not showing packages installed via pip PyCharm中的PySpark导入错误,未安装模块,“没有名为”的模块错误 - PySpark import error in PyCharm, modules not installed, "no module named "error 无法在python 2.7.14中导入任何模块(已安装使用过的pip) - Cannot import any modules (installed used pip) in python 2.7.14 如何以与pip安装的模块相同的方式导入自定义模块? - How to import custom module the same way as pip-installed modules? 无法导入似乎已安装的 package - Unable to import a package that seems to have been installed 使用通过 pip 安装的 python 模块为 Linux 系统打补丁 - Patching Linux systems with python modules installed via pip
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM