[英]Upgrade Python Sphinx with easy_install
我正在使用Portable Python 2.7.6.1,並安裝了Sphinx 1.5.1以創建手冊。 由於Sphinx在過去的幾個月中已經取得了很大的進步,因此我試圖更新到最新版本的Sphinx 1.6.5,但是我無法使用easy_install
工具進行升級。
我試過了:
easy_install-2.7.exe -U sphinx
它說:
Searching for sphinx
Reading http://pypi.python.org/simple/sphinx/
Couldn't retrieve index page for 'sphinx'
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Best match: sphinx 1.5.1
Processing sphinx-1.5.1-py2.7.egg
sphinx 1.5.1 is already the active version in easy-install.pth
之后,我嘗試強制使用該版本,但這也失敗了:
easy_install-2.7.exe -m 1.6.5 sphinx
這就是說的:
Searching for 1.6.5
Reading http://pypi.python.org/simple/1.6.5/
Couldn't find index page for '1.6.5' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for 1.6.5
Best match: None
Traceback (most recent call last):
File "C:\Data\Frank\Programme\Portable Python 2.7.6.1\App\Scripts\easy_install-2.7-script.py", line 8, in <module>
load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install-2.7')()
File "C:\Data\Frank\Programme\Portable Python 2.7.6.1\App\lib\site-packages\setuptools\command\easy_install.py", line 1712, in main
with_ei_usage(lambda:
File "C:\Data\Frank\Programme\Portable Python 2.7.6.1\App\lib\site-packages\setuptools\command\easy_install.py", line 1700, in with_ei_usage
return f()
我在這里做錯了什么? 也許刪除獅身人面像會有所幫助,但似乎在easy-install
為此的命令開關。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.