2015-10-20 52 views
1

我的工具: Windows 7中, 的Python 3.4.2如何在Windows 7計算機上將模塊上傳到Python測試網站https://testpypi.python.org/pypi?

我會通過2010保羅·巴里月頭一個Python的第2章。

部分要求是將我的發行版上傳到PyPI測試站點。

不幸的是我沒有成功。

所有到目前爲止,我已經做了讀書說,我需要利用這個HOME環境變量在Windows中,或把.pypirc在Windows 7

井的主目錄,有沒有這樣的環境在Windows 7中變量,也沒有這樣的目錄。

..........有人請給我一步一步的指導,使用Windows 7中的命令行工具?

到目前爲止,我已經創造了這個目錄下的文件.pypirc.txt:\ Python34 \ nesterhead,在我的模塊駐留在Windows 7

然後我用命令行工具來重新命名。 txt文件從.pypirc.txt複製到.pypirc。即

CD C:\ Python34 \ nesterhead

REN .pypirc.txt .pypirc。

C:\ python34 \ python.exe setup.py註冊-r pypitest

..........我得到這個作爲輸出。

ValueError異常:pypitest不.pypirc

發現..........我已經做了所有我應該做的事情,包括我的確認登記和檢查「我同意」與https://testpypi.python.org/pypi

..........我曾經也跟着從http://peterdowns.com/posts/first-time-with-pypi.html的說明,並與正確的用戶名和密碼下面的代碼在我.pypirc.txt

 [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}} 

非常感謝你。

回答

1
echo %userprofile% 

這將顯示您的主目錄在Windows 7中

相關問題