简体   繁体   中英

Python-pypi registration error using cmd

I have just started to learn Python and created my first module. I wanted to upload to Pypi so I registered on the site manually and following it I tried to run at CMD. I run command as following:

注册命令

I have searched all over the internet but I'm not finding anything regarding this thing and as I'm just few days old in python really not getting much idea what to do,so help me!!

You need to create a .pypirc file in your Home directory in.

It should contain this

[distutils]
index-servers =
  pypi
  pypitest

[pypi]
repository=https://pypi.python.org/pypi
username=your_username
password=your_password

[pypitest]
repository=https://testpypi.python.org/pypi
username=your_username
password=your_password

This will correct the path to https as your error suggests

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM