![](/img/trans.png)
[英]Pipenv trouble on MacOS “TypeError: 'module' object is not callable”
[英]Pipenv TypeError: 'module' object is not callable, locking packages
大家好,我是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
我有同樣的問題,我曾經有過這個問題,看來這個問題將在Python3.6中發生。
我的Pipfile:
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
pyinstaller = "*"
[dev-packages]
[requires]
python_version = "3.6"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.