Search code examples
pythonpipenv

How to change the [[source]] for the Pipfile for better usage of pipenv?


The default [[source]] for Pipfile is

[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

Now I want to change it to:

url = "https://pypi.doubanio.com/simple/"

Do I need to change the name at the same time?

If yes, then what is the name rule (or is it okay for me to go simply without this "name")?


Solution

  • Check this page, section Specifying Indexes.

    The name is some field you define arbitrary and use with the index key to specify where a package should come from.