1

我正在使用 Pythonxy(已卸载所有旧的 Python 实例),并且根据文档页面https://code.google.com/p/pythonxy/wiki/StandardPlugins将 pip 作为标准插件

但是当我使用 pip 命令时它失败了。任何人都可以请找出我犯的错误吗?

在我搬到 Pythonxy 之前,PS Pip 在 Python 下运行良好

Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

Imported NumPy 1.8.0, SciPy 0.13.3, Matplotlib 1.3.1
+ guidata 1.6.1, guiqwt 2.3.1
Type "scientific" for more details.
>>> pip freeze
  File "<stdin>", line 1
    pip freeze
             ^
SyntaxError: invalid syntax
>>> pip install numpy
  File "<stdin>", line 1
    pip install numpy
              ^
SyntaxError: invalid syntax
>>> 
4

1 回答 1

2

PIP从来没有那样工作过。
使用命令行 ieBASH而不是Python Interpreter.
确定

pip install numpy

是无效的 Python 语句。您可以在 shell 中使用上述命令。

于 2014-04-04T09:55:06.850 回答