Pipenv: $ pipenv 安装不起作用。

创建于 2017-01-25  ·  3评论  ·  资料来源: pypa/pipenv

❯ pipenv install
Creating a Pipfile for this project...
Creating a virtualenv for this project...
New python executable in /Users/jeyraof/Work/fashion-keyword/.venv/bin/python
Installing setuptools, pip, wheel...done.

Virtualenv location: /Users/jeyraof/Work/fashion-keyword/.venv
No package provided, installing all dependencies.
Pipfile found at /Users/jeyraof/Work/fashion-keyword/Pipfile. Considering this to be the project home.
Installing dependencies from Pipfile...

Traceback (most recent call last):
  File "/usr/local/bin/pipenv", line 11, in <module>
    sys.exit(cli())
  File "/Library/Python/2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Library/Python/2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Library/Python/2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Library/Python/2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/pipenv/cli.py", line 524, in install
    do_init(dev=dev, requirements=requirements, allow_global=system)
  File "/Library/Python/2.7/site-packages/pipenv/cli.py", line 378, in do_init
    click.echo(crayons.yellow('Pipfile.lock not found, creating...', err=True))
TypeError: yellow() got an unexpected keyword argument 'err'

❯

当我启动新项目时,我发送了命令$ pipenv install来初始化默认结构。
但是没有传递特定的 pypi-package-name,它引发了上述错误。

但是,当我在启动时传递 pypi-package-name 时,它​​运行良好:
$ pip env install requests

怎么处理呢?

$ pipenv install (blank)错误的请求吗?

所有3条评论

固定的!

它没有修复我在尝试运行 $ pipenv install (blank) 时仍然收到错误,它仍然是一个错误的请求。 -bash: pipenv: command not found

@allisonsnipes您的问题无关

此页面是否有帮助?
0 / 5 - 0 等级