我创建了我的第一个包。当我尝试在新创建的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
添加回答
举报
0/150
提交
取消