我创建了一个名为 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/