为了账号安全,请及时绑定邮箱和手机立即绑定

Python软件包似乎忽略了我的要求

Python软件包似乎忽略了我的要求

达令说 2021-03-17 18:14:59
我创建了我的第一个包。当我尝试在新创建的virtualenv中使用pip安装它时,出现错误,指示无法导入lib,但它们已添加到中的install_requires字段中setup.py。如果我在vierualenv之外做,那一切都还好。我的setup.py在这里:https : //github.com/tdi/pyPEPA/blob/dev/setup.py重现该错误:mkvirtualenv something -p /usr/bin/python3workon somethingpip install pypepa。Downloading/unpacking pypepa Running setup.py egg_info for package pypepa Traceback (most recent call last):  File "<string>", line 16, in <module>  File "/home/tdi/.virtualenvs/koza/build/pypepa/setup.py", line 3, in <module>    import pypepa  File "./pypepa/__init__.py", line 6, in <module>    from pypepa.pepa_model import PEPAModel  File "./pypepa/pepa_model.py", line 6, in <module>    from pypepa.parsing.parser import PEPAParser  File "./pypepa/parsing/parser.py", line 5, in <module>    from pyparsing import Word, Literal, alphas, alphanums, nums, Combine, Optional, ZeroOrMore, Forward, restOfLineImportError: No module named 'pyparsing'Complete output from command python setup.py egg_info:Traceback (most recent call last):File "<string>", line 16, in <module> File "/home/tdi/.virtualenvs/koza/build/pypepa/setup.py", line 3, in <module>import pypepaFile "./pypepa/__init__.py", line 6, in <module>from pypepa.pepa_model import PEPAModel File "./pypepa/pepa_model.py", line 6, in <module>from pypepa.parsing.parser import PEPAParser File "./pypepa/parsing/parser.py", line 5, in <module>  from pyparsing import Word, Literal, alphas, alphanums, nums, Combine, Optional, ZeroOrMore, Forward, restOfLine ImportError: No module named 'pyparsing' ---------------------------------------- Command python setup.py egg_info failed with error code 1 in      /home/tdi/.virtualenvs/koza/build/pypepa Storing complete log in /home/tdi/.pip/pip.log
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 209 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信