ModuleNotFoundError: 找不到名为 ‘imagekitio’ 的模块。

huangapple go评论55阅读模式
英文:

ModuleNotFoundError: No module named 'imagekitio'

问题

我正在尝试导入imagekitio模块,用于我正在进行的项目。然而,我遇到了以下错误:

ModuleNotFoundError: No module named 'imagekitio'

起初,你可能会认为模块未安装,但我已经检查过,实际上已经安装了。例如:

pip show imagekitio

响应如下:

Name: imagekitio
Version: 3.1.0
Summary: Python wrapper for the ImageKit API
Home-page: https://github.com/imagekit-developer/imagekit-python
Author: 
Author-email: 
License: 
Location: C:\Users\nekov\Cloud-Drive\Máster Data Engineering\Módulo 2 - Arquitecturas transaccionales\M02-proyecto-consolidacion\Solucion proyecto consolidacion\project_env\Lib\site-packages
Requires: requests, requests-toolbelt, urllib3
Required-by: 

我在一个新创建的环境中执行这个操作。我已经尝试过停用/启用环境,卸载imagekitio然后重新安装,但仍然无法解决问题。

你知道我如何解决这个问题吗?

英文:

I am trying to import the imagekitio module for a project I am working on. However, I am getting the follwing error:

ModuleNotFoundError: No module named 'imagekitio'

At first, you might think that the module is not installed, but I checked and it is actually installed. For instance:

pip show imagekitio

An the response is:

Name: imagekitio
Version: 3.1.0
Summary: Python wrapper for the ImageKit API
Home-page: https://github.com/imagekit-developer/imagekit-python
Author: 
Author-email: 
License: 
Location: C:\Users\nekov\Cloud-Drive\Máster Data Engineering\Módulo 2 - Arquitecturas transaccionales\M02-proyecto-consolidacion\Solucion proyecto consolidacion\project_env\Lib\site-packages
Requires: requests, requests-toolbelt, urllib3
Required-by: 

I am executing this in a new environment I have created. I have tried deactivating/activating the environment again, uninstalling the imagekitio and installing again, but it does not work.

Do you know how I could solve this issue?

答案1

得分: 0

多亏了其他用户提供的评论,我成功地找到了问题所在。事实上,包已经安装好了,但在新环境中没有安装jupyter和jupyter lab。我安装了它们,然后再次出现了相同的错误。我关闭了创建的环境以及所有的jupyter实例,然后重新打开了它们。然后它就正常工作了。

我将这个解决方案发表在这里,以防将来有人遇到同样的问题,因为这个解决方案是根据评论建议的,而不是直接回答问题。

英文:

Thanks to the comments provided by other users, I managed to identify the problem. Effectively, the package was installed, but what was not installed in the new environment was jupyter and jupyter lab. I installed it, and again it showed the same error. I close the environment created and all jupyter instances and reopened all again. Then it worked.

I post this solution in case someone has the same problem in the future, as the solution was suggested by comments and not replying directly to the question.

huangapple
  • 本文由 发表于 2023年7月14日 01:52:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/76682072.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定