the private key for is not installed on this mac

the private key for is not installed on this mac

如果提交 时出现这个问题, 有可能是 keychain重复了,

1:要去keychain中把旧的删除,

2:到xcode中刷新账号信息, 就会生成 新的.

转载于:https://www.cnblogs.com/willbin/p/3584361.html

Last login: Wed May 28 22:57:11 on ttys000 /Users/wangxuguang/.zshrc:3: no such file or directory: /usr/local/bin/brew /Users/wangxuguang/.zshrc:export:3: not valid in this context: wangxuguang@MacBookPro ~ % pipx install enex2notion zsh: command not found: pipx wangxuguang@MacBookPro ~ % pip Usage: pip <command> [options] Commands: install Install packages. lock Generate a lock file. download Download packages. uninstall Uninstall packages. freeze Output installed packages in requirements format. inspect Inspect the python environment. list List installed packages. show Show information about installed packages. check Verify installed packages have compatible dependencies. config Manage local and global configuration. search Search PyPI for packages. cache Inspect and manage pip's wheel cache. index Inspect information available from package indexes. wheel Build wheels from your requirements. hash Compute hashes of package archives. completion A helper command used for command completion. debug Show information useful for debugging. help Show help for commands. General Options: -h, --help Show help. --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr. --isolated Run pip in an isolated mode, ignoring environment variables and user configuration. --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise. --python <python> Run pip with the specified Python interpreter. -v, --verbose Give more output. Option is additive, and can be used up to 3 times. -V, --version Show version and exit. -q, --quiet Give less output. Option is additive, and can be used up to 3 times (corresponding to WARNING, ERROR, and CRITICAL logging levels). --log <path> Path to a verbose appending log. --no-input Disable prompting for input. --keyring-provider <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed. Specify which mechanism to use [auto, disabled, import, subprocess]. (default: auto) --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port. --retries <retries> Maximum attempts to establish a new HTTP connection. (default: 5) --timeout <sec> Set the socket timeout (default 15 seconds). --exists-action <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort. --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS. --cert <path> Path to PEM-encoded CA certificate bundle. If provided, overrides the default. See 'SSL Certificate Verification' in pip documentation for more information. --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format. --cache-dir <dir> Store the cache data in <dir>. --no-cache-dir Disable the cache. --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download. Implied with --no-index. --no-color Suppress colored output. --use-feature <feature> Enable new functionality, that may be backward incompatible. --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future. --resume-retries <resume_retries> Maximum attempts to resume or restart an incomplete download. (default: 0) wangxuguang@MacBookPro ~ % pip3 install enex2notion error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try brew install xyz, where xyz is the package you are trying to install. If you wish to install a Python library that isn't in Homebrew, use a virtual environment: python3 -m venv path/to/venv source path/to/venv/bin/activate python3 -m pip install xyz If you wish to install a Python application that isn't in Homebrew, it may be easiest to use 'pipx install xyz', which will manage a virtual environment for you. You can install pipx with brew install pipx You may restore the old behavior of pip by passing the '--break-system-packages' flag to pip, or by adding 'break-system-packages = true' to your pip.conf file. The latter will permanently disable this error. If you disable this error, we STRONGLY recommend that you additionally pass the '--user' flag to pip, or set 'user = true' in your pip.conf file. Failure to do this can result in a broken Homebrew installation. Read more about this behavior here: <https://peps.python.org/pep-0668/> note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. wangxuguang@MacBookPro ~ %
05-29
OAuth 2.0 tokens Last UpdatedAug 28, 20255 minute read Identity and Access ManagementDeveloper guideActive HERE allows you to create API keys or OAuth 2.0 bearer access tokens for authorization. Note Trusted domains aren't enforced with tokens. Token credentials conform to the OAuth 2.0 industry standard protocol for Bearer Access Tokens. HERE provides REST APIs to obtain these secure access tokens used for up to 24 hours by your app. If you try to call HERE APIs with an outdated token, you get a 401 Unauthorized error. The API requests access tokens and has a fixed limit to protect service health. The limit per appId sets to a default of 25,000 requests per 15 minutes enforced at 1666 requests per minute across all calls to Here Account APIs. Prerequisites HERE supports the following operating systems: Windows 10 Linux (Ubuntu 18.04) macOS Sierra or higher The OLP CLI requires the Java Runtime Environment (JRE) version 1.8.0_91 or higher. If you used winget to install the OLP CLI, you likely already have an OpenJDK 17 image installed, in which case it's not necessary to separately install the JRE. To obtain your OAuth 2.0 tokens: Step 1 - Register your app and get credentials Before you can use OAuth 2.0 tokens, you must register your app on the HERE platform and acquire your credentials. Note Your associated authentication credentials are specific to your app and do not inherit your user permissions or group memberships. Register your app In your local development environment, create a .here folder in your home directory. For Mac/Linux users, this will be $HOME/.here For Windows users, this will be C:\%HOMEPATH%\.here, if your home directory is on your C drive. Sign in to the HERE platform. Select the Access Manager from the launcher. On the Apps tab, click Register new app and provide the requested information. Click Register. The platform creates a new app with a unique app ID. Get your credentials On the Credentials tab, select OAuth 2.0 and then click Create credentials. In the dialog box that opens, click Download to download your app's credentials.properties file. This file contains your user ID, app ID (which is named here.client.id), OAuth 2.0 token endpoint URL, access key ID, and access key secret. Note that once you click Close, you can no longer access your access key ID and access key secret. Copy the credentials.properties file to the .here folder you created in the first step. The credentials.properties file contains your platform credentials, which the OLP CLI and libraries use to manage access to the platform. You can also use the included OAuth 2.0 token credentials to make authenticated calls to various HERE REST APIs. For more information on using the OLP CLI, see the Command Line Interface Developer Guide. Step 2 - Install OLP CLI Install the OLP CLI via your preferred method. Installation options Installation options Step 3 - Get a token After registering an app, you can use OAuth 2.0 tokens to authenticate requests. An app can use a maximum of two tokens. You can use the OLP CLI to get a token. For more information, see the HERE OLP CLI - User Guide. Warning Keep your credentials private, and never share them between workstations and users, or in public repositories on sites like GitHub. To get a token: Sign in to the HERE platform. Select Access Manager from the launcher. Click Apps and select an app which you previously registered. Select OAuth 2.0 from the Credentials tab. Click Create credentials. In the dialog box that opens, click Download to download the credentials.properties file. Note that once you click Close, you can no longer access your access key ID and access key secret. To create a default profile and associate your credentials with it, run the following command: olp credentials import default credentials.properties To get a token, navigate to the directory that contains the OLP CLI JAR file and run the following command: olp api token get olp api token get If your credentials are properly configured, you'll see a returned token, as well as output similar to the following: Token: eyJhbGciOiJSUzUxMiIsImN0eSI6IkpXVCIsImlzcyI6IkhFUkUiLCJhaWQiOiJtekxjYjFyTDhuc2t2RFFwQ0ZFRiIs ImlhdCI6MTUyMTgwNjYyOCwiZXhwIjoxNTIxODkzMDI4LCJraWQiOiJqMSJ9.ZXlKaGJHY2lPaUprYVhJaUxDSmxibU1pT2lKQk 1qVTJRMEpETFVoVE5URXlJbjAuLmtGc0JMODJibEUxTHhCS1M3MEctcFEuZHhsb2psaklEQmdNVEdoMEFKMHAzUU9yeE9INXdhd 1hkWjVSLS1Kdkc3VFBoUkRWY3owcUFYZ0V2Y3kwOGpMdzBCR09sNjJfZ2pxeUNuLXhET3JtZV8xNUlkV0tJN2VxTUpZNTNJelRx ZjhUSzdVVHlEUlJFVnBLRW5BN2FvR2MubFViMTNGYWdKMlVGZXVQZnZsVG44Y2JqTzdtbF9ncGpLamFUN0xmZFF0UQ.EPYB9Rdy jCHFxrqpaEBWkPzhPmFrAPBKlkt8SQpcI0k71mH_vC6txh6Uv1NVQC4xYyWG7ueq5mb4mcQh1sCorcv15GwIH1R0v0NR_CRPh-M DNSFtg8HNnWyC1ePsfUGpSqjucQW8RMdbsU03wDO50Pr3ctQI4BZrxiU4HW6tdQq9_TinizujACzE-LMZ6FlFAb6pPB8TDsFlY3 9OmBFXEanaPvZwE01dKjE1K_A_G1_TiJzWo4vwuNeD54HfmOf6hN1IE8-CCSKRoIFoIBiVNqqzyCybyovRlSCWzSaTNz4v9BD7N 2lDgEuBlpn3q0qTFppZzjEvzv3RicGrCC_tmB Token Expires at: 2018-03-24T14:03:48.100Z Step 4 - Use the token After obtaining a token, you must code your app to retrieve an OAuth 2.0 token for each request to a HERE service. Start by including the token in the HTTP Authorization header of your REST requests as a bearer token: Authorization: Bearer <token> With your token, you can query HERE services with an API REST request as shown in the following example. Sample REST Request The following sample request uses a GET method to retrieve a list of parking facilities within 500 meters of a point in Berlin. Sample Request The URL https://parking-v2.cc.api.here.com/parking/facilities.json specifies the endpoint for retrieving parking facility data in JSON format. The query parameters ?prox=51638,13.38244,500 indicate the geographic coordinates (latitude and longitude) and a radius (500 meters) for the search. The -H "Authorization: Bearer {YOUR_TOKEN}" line adds an authorization header. In a real API call, {YOUR_TOKEN} would be replaced with a valid access token for authentication. curl GET https://parking-v2.cc.api.here.com/parking/facilities.json ?prox=52.51638,13.38244,500 -H "Authorization: Bearer {YOUR_TOKEN}" Sample response The response produces details for a parking facility. The top-level object contains two properties: hasMore A boolean indicating if there are more facilities available. In this example, the value is returned as false. facilities An object that holds an array of facility details. The facility object includes various parameters describing the restaurant, such as its operating hours, address, and contact information. { "hasMore":false, "facilities":{ "facility":[ { "open24x7":true, "facilityDetails":{ "openingHours":{ "openNow": true, "regularOpeningHours":[ { "daymask":127, "period":[ { "from":"00:00:00", "to":"24:00:00" } ] } ], "annualOpenings":[ ] }, "driveMaxHeight":1.8, "facilityType":{ "name":"Parking Facility", "id":"1" }, "facilityOperator":"APCOA GmbH", "facilityLevels":2, "facilityInfrastructures":{ "name":[ "handicappedparkingspaces", "securitymanned", "elevators", "light" ] }, "facilityAdministration":{ "name":[ "Monitored", "Gate" ] }, "facilityRestrictions":{ }, "paymentMethods":[ { "name":"Cash - EUR", "id":"CASH" } ] }, "facilityAvailability":{ "spacesTotal":173, "available":true, "pricing":{ "price":[ { "priceGroup":0, "amount":2.0, "currency":"EUR", "unit":30, "daymask":127, "minMinutes":0, "maxMinutes":30, "textRepresentation": [ { "text": [ "First 30 minutes", "Per 30 minutes", "Every day" ], "language": "en-US" } ] }, { "priceGroup":1, "amount":4.0, "currency":"EUR", "unit":60, "daymask":127, "minMinutes":31, "maxMinutes":60, "textRepresentation": [ { "text": [ "Over 31 minutes", "Max 1 hour", "Per hour", "Every day" ], "language": "en-US" } ] }, { "priceGroup":2, "amount":38.0, "currency":"EUR", "unit":1440, "daymask":127, "minMinutes":61, "maxMinutes":1440, "textRepresentation": [ { "text": [ "Over 1 hour and 1 minute", "Max 24 hours", "Per day", "Every day" ], "language": "en-US" } ] } ] }, "lastUpdateTimestamp":"2016-06-06T06:50:31.000Z" }, "address":{ "city":"Berlin", "country":"DEU", "region":"Berlin", "street":"Unter den Linden", "streetNumber":"77", "postalCode":"10117" }, "contacts":{ "phone":[ { "value":"+4971130570305", "label":"PHONE" } ] }, "distance":166, "position":{ "latitude":52.51631, "longitude":13.37999 }, "name":"Hotel Adlon", "id":"276u33db-e63737ae997c4a1ab5a19c50a63af49e", "lastUpdateTimestamp":"2016-05-31T01:04:46.015Z", "timeZone":"Europe/Berlin" }, { ---removed to shorten document } ] } } Next steps For more information about authentication and authorization, see the Identity and Access Management Authentication v1.1 API Reference and the Identity and Access Management Authorization v1.1 API Reference.
12-05
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值