首页 > 解决方案 > 导入包魅力:没有名为魅力的模块

问题描述

我执行了一个从charm导入的py代码,如下所示:from charm.toolbox.PKEnc import PKEnc我得到了错误ModuleNotFoundError: No module named 'charm'

我执行pip install charm了,但出现以下错误:

Collecting charm
  Using cached https://files.pythonhosted.org/packages/67/6c/6173abe5f27f59f4ce000802a60f8d8d32ad33052391b2c407729b1c7185/charm-1.0b4.zip
Collecting BeautifulSoup
  Using cached https://files.pythonhosted.org/packages/40/f2/6c9f2f3e696ee6a1fb0e4d7850617e224ed2b0b1e872110abffeca2a09d4/BeautifulSoup-3.2.2.tar.gz
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

我该如何进行?

标签: pythonpython-importcharm

解决方案


推荐阅读