如何解决使用pip安装pybabel-0.0.0.dev0后消失的问题?

huangapple go评论59阅读模式
英文:

How can I solve the issue of pybabel-0.0.0.dev0 disappearing after installation with pip?

问题

我需要使用pybabel库来创建本地化文件。
我运行了:pip install pybabel
我看到正在安装pybabel-0.0.0.dev0版本。
这是文档链接 https://babel.readthedocs.io/en/latest/cmdline.html
她到底去哪了,要怎么办?开发者抛弃了人们,毁了项目。

搜索了但一无所获。

英文:

I need to use pybabel library to make locale files.<br>
I run: pip install pybabel<br>
And I see that the version pybabel-0.0.0.dev0 is being installed<br>
Here is the documentation https://babel.readthedocs.io/en/latest/cmdline.html&lt;br>
Where did she disappear to and what to do? The developer threw people and destroyed the project

Searched and found nothing

答案1

得分: 0

您没有使用正确的安装命令。Pypi上的项目pybabel似乎与您正在阅读文档的Babel的Python接口无关。请参阅您链接的文档中的安装部分

> 输入以下命令以在您的虚拟环境中安装Babel:

$ pip install Babel

一般提示

虽然通常情况下,在Python中import的包的名称与Pypi上的项目名称相同,但也有许多例外情况。建议始终检查您尝试安装的包的文档以获取正确的命令,并/或检查PyPi项目页面,以确保您正在查看正确的包。

英文:

You are not using the correct installation command. The project pybabel on Pypi does not seem to be related to the python interface of Babel for which you are reading the documentation. See the Installation section of the docs that you have linked:

> enter the following command to get Babel installed in your virtualenv:

$ pip install Babel

General Note

While it is often true that the name of the package you import in python is the same as the name of the project on Pypi, there are also many exceptions. It is always advisable to both check the documentation of the package you try to install for the correct command and/or check the PyPi project page if you are looking at the correct package

huangapple
  • 本文由 发表于 2023年5月29日 23:58:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/76358749.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定