python - 如何创建在 PyPI 上显示图片的 README.md?

标签 python github pip markdown pypi

我创建了一个名为 ExoplanetPy on PyPI 的 python 包,但是项目页面的图片由于某种原因似乎没有渲染出来。 对于上下文,README.md 在 GitHub repository 上显示图片.

如何编辑 markdown 文件,以便在 PyPI 上发布时可以有图片?

谢谢。

最佳答案

根据here - Stack Overflow Question

PyPI will not read your package distributions for the image. You have to use the image's external link.

因此将代码更改为:

![](https://raw.githubusercontent.com/ExoplanetPy/ExoplanetPy/master/images/logo_400.png "ExoplanetPy logo")

关于python - 如何创建在 PyPI 上显示图片的 README.md?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64344068/

相关文章:

python - SOM-- 神经网络

python - 在程序的后面部分使用变量(python)

python - 如何在 Julia 中使用 Anaconda 中不可用且需要通过 pip 安装的 Python 包

python - 找不到 'pip==9.0.1' 分布,应用程序需要该分布

python - 如何检查 SQLAlchemy session 是否脏

python - 遍历列表列表的列表

github - 我可以使 fork 的 github 存储库与原始存储库保持同步吗?

github - github上的"This comparison is taking too long to generate."错误

github - 同一个 RStudio 中的两个不同 Github 帐户

python - 模块未找到错误: No module named 'flask_wtf'