ARNING: `mpl_finance` is deprecated: Please use `mplfinance` instead (no hyphen, no underscore). To install: `pip install --upgrade mplfinance` For more information, see: https://pypi.org/project/mplfinance/ ================================================================= __warnings.warn('\n\n ================================================================='+
时间: 2023-08-23 11:06:16 浏览: 332
嗨!很高兴回答你的问题。关于`mpl_finance`的警告,它已被弃用,建议使用`mplfinance`代替(无连字符,无下划线)。你可以使用以下命令进行安装:`pip install --upgrade mplfinance`。有关更多信息,请参阅[这个链接](https://pypi.org/project/mplfinance/)。
相关问题
arning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
The warning you mentioned is related to the use of the `apt-key` command in managing keyring files for package repositories in Debian-based systems. Starting from Ubuntu 20.04 and Debian 10, the `apt-key` command has been deprecated, and it is recommended to manage keyring files in the `trusted.gpg.d` directory instead.
To address this warning, you can follow these steps:
1. Open a terminal.
2. Create a new file in the `trusted.gpg.d` directory:
```shell
sudo touch /etc/apt/trusted.gpg.d/custom.gpg
```
3. Import the GPG key using the `gpg` command:
```shell
sudo gpg --dearmor --output /etc/apt/trusted.gpg.d/custom.gpg /path/to/keyfile.gpg
```
Replace `/path/to/keyfile.gpg` with the actual path to the GPG key file you want to import.
4. Update the package lists:
```shell
sudo apt update
```
By following these steps, you should be able to manage keyring files without triggering the deprecated warning.
arning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). gpg: 找不到有效的 OpenPGP 数据。
这个警告是因为最近apt-key命令被宣布为废弃,被`gpg`命令代替。你可以使用以下命令来添加 GPG 密钥:
```
sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/pubkey.gpg --import <keyfile>
```
其中,`<keyfile>` 是你下载的 GPG 密钥文件的路径。这个命令会将密钥添加到 `/etc/apt/trusted.gpg.d/` 目录下,并且不会使用默认密钥环。
阅读全文