使用easy_install在windows上安装scipy

 wuli空空以空空 发布于 2023-02-10 14:23

我在Windows 7上安装了python 2.7 64bit.我后来意识到我的窗口是32位...

Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] on win
32

无论如何,它仍在工作!我还在Windows路径中添加了python安装目录.

比我使用ez_setup脚本安装easy_install.这也奏效了

C:\Users\Myname>easy_install
error: No urls, filenames, or requirements specified (see --help)

但后来我无法安装Matplolib或Scipy模块!

C:\Users\Massimo\Dropbox\Python>easy_install scipy
Searching for scipy
Reading https://pypi.python.org/simple/scipy/
Best match: scipy 0.13.2
Downloading https://pypi.python.org/packages/source/s/scipy/scipy-0.13.2.zip#md5
=9befa30e546fba762a0c1695a509f731
Processing scipy-0.13.2.zip
Writing c:\users\massimo\appdata\local\temp\easy_install-v3knvt\scipy-0.13.2\set
up.cfg
Running scipy-0.13.2\setup.py -q bdist_egg --dist-dir c:\users\massimo\appdata\l
ocal\temp\easy_install-v3knvt\scipy-0.13.2\egg-dist-tmp-tatxbl
Traceback (most recent call last):
  File "c:\python27\scripts\easy_install-script.py", line 9, in 
    load_entry_point('setuptools==0.8', 'console_scripts', 'easy_install')()
  File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 1992
, in main
  File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 1979
, in with_ei_usage
  File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 1996
, in 
  File "c:\python27\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "c:\python27\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "c:\python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 380,
 in run
  File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 623,
 in easy_install
  File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 653,
 in install_item
  File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 849,
 in install_eggs
  File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 1130
, in build_and_install
  File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 1115
, in run_setup
  File "build\bdist.win-amd64\egg\setuptools\sandbox.py", line 69, in run_setup
  File "build\bdist.win-amd64\egg\setuptools\sandbox.py", line 120, in run
  File "build\bdist.win-amd64\egg\setuptools\sandbox.py", line 71, in 
  File "setup.py", line 230, in 
  File "setup.py", line 218, in setup_package
ImportError: No module named numpy.distutils.core

谢谢.

1 个回答
  • Christoph Gohlke 在这里提供预构建的Windows安装程序,包括scipy.你最好的选择是使用其中一个,原因是从源代码安装scipy,numpy和matplotlib需要构建C和Fortran扩展,大多数Windows机器都没有编译器.

    或者,有许多预构建的istallations包括python和一些其他工具:

    Anaconda:SciPy堆栈的免费发行版.支持Linux,Windows和Mac.

    Enthought Canopy:免费和商业版本包括核心SciPy堆栈包.支持Linux,Windows和Mac.

    Python(x,y):一个免费的发行版,包括基于Spyder IDE的SciPy堆栈.仅限Windows.

    WinPython:包括SciPy堆栈的免费发行版.仅限Windows.

    Pyzo:基于Python 3和IEP编辑器的免费发行版.支持Linux和Windows.

    2023-02-10 14:26 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有