Python34\Scripts安装后的文件夹配置

Python34\Scripts folder configuration after installation

为了让 Easy_Install 与 Python34 和 Python27 一起工作,我已经用尽了文档中列出的选项。

有没有办法添加 Python\Scripts 文件夹,这样我就不再收到以下错误?

>>> easy_install numpy
  File "<stdin>", line 1
    easy_install numpy
                     ^
SyntaxError: invalid syntax

>>> easy_install
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'easy_install' is not defined
>>>

您正在 运行ning shell 命令来自 Python REPL,而不是来自 Windows 命令行。通过键入 quit()exit() 或按 CtrlD 退出 REPL。通过点击 WinR 打开 Windows 命令提示符,输入 cmd,然后点击 Entereasy_install 现在应该可以工作了,尽管对于大多数用例(除非您是从鸡蛋安装的),pip 应该就足够了。它已经与 Python 3.4 和 2.7.9 一起安装,否则可以通过谷歌搜索 install pip 并跟随第一个 link 安装。 pip install numpy 绝对是首选方式,因为 pip 支持轮子,越来越多的包(包括 numpy)正在上传到 PyPI。

或者,在 Christoph Gohlke's Python Extension Packages for Windows 存储库中搜索您要查找的包。 numpy 的版本静态地 linked 到英特尔的高性能 MKL 库,许多 numpy 依赖包如 scipymatplotlib 也是如此.只需从 Gohlke 的网站 运行 pip install package_name_version_whatever.whl 下载合适的 .whl 文件,就可以开始了。