2014-04-04 101 views
1

我使用Pythonxy(已卸载的Python的所有旧的情况下),它具有PIP作为一个标准插件,按照文档页面https://code.google.com/p/pythonxy/wiki/StandardPluginsPIP不能在Pythonxy中工作?

但是当我使用PIP命令失败。请问任何人都可以搞清楚我犯的错误吗?

P.S.皮普用于Python的井下工作之前,我搬到Pythonxy

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

回答

2

PIP从来不打的方式。
使用命令行,即BASH而不是Python Interpreter
可以肯定的说

pip install numpy 

是无效的Python语句。你可以使用你的shell提到的命令。

+0

谢谢,我错过了它是口译员的观点 –