Windows7 under Installation scipy

Source: Internet
Author: User



SciPy is based on NumPy , so you need to install it first. NumPy , then install SciPy .

The installation of NumPy can be directly

scipy:http://sourceforge.net/projects/scipy/files/scipy/

Download the executable file, double-click Run, but the following error occurred:

Python version 2.7 is required, which were not found in the registry

Reason:

Win7 is a 64 reason, when you install Python (32-bit), if you choose only for the current user, the above problems will not appear, if you select all users, then the above problem occurs.

Workaround:

1, create the file register.py in G disk, copy the following code in

# # Script to register Python 2.0 or later-win32all# and other extensions that require Python registry setting s## written by Joakim Loew for Secret Labs ab/pythonware## source:# http://www.pythonware.com/products/works/articles/re gpy20.htm## modified by Valentine Gogichashvili as described in http://www.mail-archive.com/[email protected]/ msg10512.html Import sys from _winreg import * # tweak as Necessaryversion = Sys.version[:3]installpath = Sys.prefix Regpa th = "software\\python\\pythoncore\\%s\\"% (version) Installkey = "InstallPath" Pythonkey = "PythonPath" PythonPath = "%s; %s\\lib\\;%s\\dlls\\ "% (InstallPath, InstallPath, InstallPath) def registerpy (): Try:reg = Openkey (HKEY_CU            Rrent_user, Regpath) except environmenterror as E:try:reg = CreateKey (HKEY_CURRENT_USER, Regpath)            SetValue (Reg, Installkey, REG_SZ, InstallPath) SetValue (Reg, Pythonkey, REG_SZ, Pythonpath)   Closekey (reg) except:         Print "* * * Unable to register!"        return print "---Python", version, "is now registered!" return if (QueryValue (Reg, installkey) = = InstallPath and QueryValue (Reg, pythonkey) = = Pythonpath): Clos        EKey (reg) print "= = = Python", version, "is already registered!"    Return Closekey (REG) Print "* * * Unable to register!" Print "* * * you probably has another Python installation!" if __name__ = = "__main__": Registerpy ()

Then in cmd the Python register.py is registered, and then the scipy is installed.


Reference:

Http://www.cnblogs.com/min0208/archive/2012/05/24/2515584.html

http://blog.csdn.net/luo123n/article/details/10027557

Windows7 under Installation scipy

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.