【问题标题】:OpenStack command-line clients on macOS - keystone: command not foundmacOS 上的 OpenStack 命令行客户端 - keystone: command not found
【发布时间】:2016-07-15 14:16:44
【问题描述】:

我在 Mac 10.11.5 上关注了Install the OpenStack command-line clients

在 Linux、Mac OS X 或 Microsoft Windows 上安装客户端 系统,使用点子。它易于使用,确保您获得最新的 来自 Python 包索引的客户端版本,并让您 稍后更新或删除软件包。

我想用user-password-update更改密码

安装keystone后,找不到命令。如何调用keystone?

$ keystone
-bash: keystone: command not found

这里详细说明我做了什么以及我的系统是什么样的

$ pip install python-keystoneclient
(..)
Successfully installed Babel-2.3.4 debtcollector-1.6.0 funcsigs-1.0.2 iso8601-0.1.11 keystoneauth1-2.9.0 monotonic-1.1 msgpack-python-0.4.7 netaddr-0.7.18 netifaces-0.10.4 oslo.config-3.13.0 oslo.i18n-3.8.0 oslo.serialization-2.11.0 oslo.utils-3.16.0 pbr-1.10.0 positional-1.1.1 pyparsing-2.1.5 python-keystoneclient-3.2.0 pytz-2016.6.1 requests-2.10.0 rfc3986-0.3.1 six-1.10.0 stevedore-1.16.0 wrapt-1.10.8

$ pip show -f python-keystoneclient
---
Metadata-Version: 2.0
Name: python-keystoneclient
Version: 3.2.0
Summary: Client Library for OpenStack Identity
Home-page: http://docs.openstack.org/developer/python-keystoneclient
Author: OpenStack
Author-email: openstack-dev@lists.openstack.org
Installer: pip
License: UNKNOWN
Location: /usr/local/lib/python2.7/site-packages
Requires: oslo.i18n, oslo.utils, six, requests, oslo.serialization, positional, keystoneauth1, debtcollector, oslo.config, pbr, stevedore
Classifiers:
  Environment :: OpenStack
  Intended Audience :: Information Technology
  Intended Audience :: System Administrators
  License :: OSI Approved :: Apache Software License
  Operating System :: POSIX :: Linux
  Programming Language :: Python
  Programming Language :: Python :: 2
  Programming Language :: Python :: 2.7
  Programming Language :: Python :: 3
  Programming Language :: Python :: 3.4
Files:
  keystoneclient/__init__.py
  (...)
  python_keystoneclient-3.2.0.dist-info/pbr.json
  python_keystoneclient-3.2.0.dist-info/top_level.txt
Entry-points:
  [keystoneclient.auth.plugin]
  admin_token = keystoneclient.auth.token_endpoint:Token
  password = keystoneclient.auth.identity.generic:Password
  token = keystoneclient.auth.identity.generic:Token
  v2password = keystoneclient.auth.identity.v2:Password
  v2token = keystoneclient.auth.identity.v2:Token
  v3oidcpassword = keystoneclient.contrib.auth.v3.oidc:OidcPassword
  v3password = keystoneclient.auth.identity.v3:Password
  v3scopedsaml = keystoneclient.contrib.auth.v3.saml2:Saml2ScopedToken
  v3token = keystoneclient.auth.identity.v3:Token
  v3unscopedadfs = keystoneclient.contrib.auth.v3.saml2:ADFSUnscopedToken
  v3unscopedsaml = keystoneclient.contrib.auth.v3.saml2:Saml2UnscopedToken
$ echo $PYTHONPATH 
/usr/local/lib/python2.7/site-packages/

PYTHONPATH 也已设置。如何获取路径中的 Python 模块,在终端上执行命令?

【问题讨论】:

    标签: macos python-2.7 pip openstack keystone


    【解决方案1】:

    Python-keystone client 已弃用,我怀疑这是问题所在:如果您将其安装在新系统上,则可执行文件不存在。您应该安装 openstack-client 。

    # pip install python-openstackclient

    【讨论】:

    猜你喜欢
    • 2021-02-23
    • 2021-01-28
    • 2020-10-31
    • 1970-01-01
    • 1970-01-01
    • 2013-08-01
    • 1970-01-01
    • 2022-12-17
    • 2022-06-23
    相关资源
    最近更新 更多