【发布时间】:2018-10-31 17:54:39
【问题描述】:
大家好,我是 python、pip 和虚拟环境的新手:
我正在尝试以这种方式安装 pygments:
我移到了项目的目录:
然后:
pipenv install pygments
软件包正在安装,但我认为锁定软件包有问题。
结果如下:
Installing pygments...
Collecting pygments
Using cached
Installing collected packages: pygments
Successfully installed pygments-2.2.0
https://files.pythonhosted.org/packages/02/ee/b6e02dc6529e82b75bb06823ff7
005b141037cb1416b10c6f00fc419dca/Pygments-2.2.0-py2.py3-none-any.whl
Adding pygments to Pipfile's [packages]...
Pipfile.lock (a65489) out of date, updating to (688642)...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
lib/python3.7/site-packages/pipenv/utils.py", line 402, in resolve_deps
req_dir=req_dir
File "/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-
packages/pipenv/utils.py", line 250, in actually_resolve_deps
req = Requirement.from_line(dep)
File "/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-
packages/pipenv/vendor/requirementslib/models/requirements.py", line
704, in from_line
line, extras = _strip_extras(line)
TypeError: 'module' object is not callable
【问题讨论】:
-
尝试删除锁定文件并再次运行
Pipenv。 -
我尝试了第一件事,但没有成功
-
你能发布你的 Pipfile 吗?