【发布时间】:2015-08-03 11:45:30
【问题描述】:
我无法正确升级或安装 ipython
C:\big data\ipython-notebooks>pip install --upgrade ipython
Downloading/unpacking ipython from https://pypi.python.org/packages/source/i/ipython/ipython-4.0.0b1.tar.gz#md
5=e32e4ea0ed8312311bb8cb3e0af0bea1
Running setup.py egg_info for package ipython
C:\Python27\lib\site-packages\setuptools\dist.py:284: UserWarning: The version specified requires normaliz
ation, consider using '4.0.0b1' instead of '4.0.0-b1'.
self.metadata.version,
Downloading/unpacking decorator from https://pypi.python.org/packages/source/d/decorator/decorator-4.0.2.tar.g
z#md5=033c9563af492c4ce2680ee6ca481fa7 (from ipython)
Running setup.py egg_info for package decorator
Downloading/unpacking pickleshare (from ipython)
Running setup.py egg_info for package pickleshare
Downloading/unpacking simplegeneric>0.8 (from ipython)
Could not find a version that satisfies the requirement simplegeneric>0.8 (from ipython) (from versions: 0.5
, 0.6, 0.7, 0.8.1, 0.8)
No distributions matching the version for simplegeneric>0.8 (from ipython)
Storing complete log in C:\Users\Oskar\pip\pip.log
它说我需要 simplegeneric,但我已经安装了它
这是我的 pip 冻结日志:
C:\big data\ipython-notebooks>pip freeze
(...)
ipython==1.1.0
(...)
pyzmq==14.7.0
(...)
simplegeneric==0.8.1
(...)
我使用的是 Python 2.7,并且安装了 MS VC++ for Python
C:\big data\ipython-notebooks>python --version
Python 2.7.3
更新
指定版本不起作用,无论是否使用 -U 标志都一样
C:\big data\ipython-notebooks>pip install ipython==3.2.1
Downloading/unpacking ipython==3.2.1
Running setup.py egg_info for package ipython
C:\Python27\lib\site-packages\setuptools\dist.py:284: UserWarning: The version specified requires normaliz
ation, consider using '4.0.0b1' instead of '4.0.0-b1'.
self.metadata.version,
Requested ipython==3.2.1, but installing version 4.0.0b1
Requirement already satisfied (use --upgrade to upgrade): decorator in c:\python27\lib\site-packages (from ipy
thon==3.2.1)
Downloading/unpacking pickleshare (from ipython==3.2.1)
Running setup.py egg_info for package pickleshare
Downloading/unpacking simplegeneric>0.8 (from ipython==3.2.1)
Could not find a version that satisfies the requirement simplegeneric>0.8 (from ipython==3.2.1) (from versio
ns: 0.5, 0.6, 0.7, 0.8.1, 0.8)
No distributions matching the version for simplegeneric>0.8 (from ipython==3.2.1)
Storing complete log in C:\Users\Oskar\pip\pip.log
更新 2
Pip 版本是 1.3.1
C:\big data\ipython-notebooks>pip --version
pip 1.3.1 from c:\python27\lib\site-packages (python 2.7)
【问题讨论】:
-
可以加
pip --version和which pip吗? -
@cel 我添加了 pip 版本。 1.3是旧的吗?到目前为止,我从来没有遇到过 pip 和 easy_install 的问题,而且我已经使用了 2 年或更长时间。