2016-04-12 17 views
5

का उपयोग कर Scipy स्थापित करने में असमर्थ मैं cmd ​​में 'pip install scipy' कमांड का उपयोग करता हूं, लेकिन अंत में यह त्रुटि प्राप्त करता हूं। मैं इसे कैसे ठीक करूं?पाइप

Microsoft Windows [Version 6.3.9600] 
(c) 2013 Microsoft Corporation. All rights reserved. 

C:\Users\Spencer>pip install scipy 
Collecting scipy 
    Using cached scipy-0.17.0.tar.gz 
Complete output from command python setup.py egg_info: 
non-existing path in 'numpy\\distutils': 'site.cfg' 
Running from numpy source directory. 
c:\users\spencer\appdata\local\temp\easy_install-3pkkpt\numpy-1.11.0\setup.py:327: UserWarning: 
Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates 
    warnings.warn("Unrecognized setuptools command, proceeding with " 
c:\users\spencer\appdata\local\temp\easy_install-3pkkpt\numpy-1.11.0\numpy\distutils\system_info 
.py:1640: UserWarning: 
    Atlas (http://math-atlas.sourceforge.net/) libraries not found. 
    Directories to search for the libraries can be specified in the 
    numpy/distutils/site.cfg file (section [atlas]) or by setting 
    the ATLAS environment variable. 
    warnings.warn(AtlasNotFoundError.__doc__) 
c:\users\spencer\appdata\local\temp\easy_install-3pkkpt\numpy-1.11.0\numpy\distutils\system_info 
.py:1649: UserWarning: 
    Blas (http://www.netlib.org/blas/) libraries not found. 
    Directories to search for the libraries can be specified in the 
    numpy/distutils/site.cfg file (section [blas]) or by setting 
    the BLAS environment variable. 
    warnings.warn(BlasNotFoundError.__doc__) 
c:\users\spencer\appdata\local\temp\easy_install-3pkkpt\numpy-1.11.0\numpy\distutils\system_info 
.py:1652: UserWarning: 
    Blas (http://www.netlib.org/blas/) sources not found. 
    Directories to search for the sources can be specified in the 
    numpy/distutils/site.cfg file (section [blas_src]) or by setting 
    the BLAS_SRC environment variable. 
    warnings.warn(BlasSrcNotFoundError.__doc__) 
c:\users\spencer\appdata\local\temp\easy_install-3pkkpt\numpy-1.11.0\numpy\distutils\system_info 
.py:1542: UserWarning: 
    Atlas (http://math-atlas.sourceforge.net/) libraries not found. 
    Directories to search for the libraries can be specified in the 
    numpy/distutils/site.cfg file (section [atlas]) or by setting 
    the ATLAS environment variable. 
    warnings.warn(AtlasNotFoundError.__doc__) 
c:\users\spencer\appdata\local\temp\easy_install-3pkkpt\numpy-1.11.0\numpy\distutils\system_info 
.py:1553: UserWarning: 
    Lapack (http://www.netlib.org/lapack/) libraries not found. 
    Directories to search for the libraries can be specified in the 
    numpy/distutils/site.cfg file (section [lapack]) or by setting 
    the LAPACK environment variable. 
    warnings.warn(LapackNotFoundError.__doc__) 
c:\users\spencer\appdata\local\temp\easy_install-3pkkpt\numpy-1.11.0\numpy\distutils\system_info 
.py:1556: UserWarning: 
    Lapack (http://www.netlib.org/lapack/) sources not found. 
    Directories to search for the sources can be specified in the 
    numpy/distutils/site.cfg file (section [lapack_src]) or by setting 
    the LAPACK_SRC environment variable. 
    warnings.warn(LapackSrcNotFoundError.__doc__) 
c:\python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'define_macros' 

    warnings.warn(msg) 
Traceback (most recent call last): 
    File "<string>", line 1, in <module> 
    File "c:\users\spencer\appdata\local\temp\pip-build-i4x0vy\scipy\setup.py", line 265, in <modu 
le> 
    setup_package() 
    File "c:\users\spencer\appdata\local\temp\pip-build-i4x0vy\scipy\setup.py", line 262, in setup 
_package 
    setup(**metadata) 
    File "c:\python27\lib\distutils\core.py", line 111, in setup 
    _setup_distribution = dist = klass(attrs) 
    File "c:\python27\lib\site-packages\setuptools\dist.py", line 268, in __init__ 
    self.fetch_build_eggs(attrs['setup_requires']) 
    File "c:\python27\lib\site-packages\setuptools\dist.py", line 313, in fetch_build_eggs 
    replace_conflicting=True, 
    File "c:\python27\lib\site-packages\pkg_resources\__init__.py", line 836, in resolve 
    dist = best[req.key] = env.best_match(req, ws, installer) 
    File "c:\python27\lib\site-packages\pkg_resources\__init__.py", line 1081, in best_match 
    return self.obtain(req, installer) 
    File "c:\python27\lib\site-packages\pkg_resources\__init__.py", line 1093, in obtain 
    return installer(requirement) 
    File "c:\python27\lib\site-packages\setuptools\dist.py", line 380, in fetch_build_egg 
    return cmd.easy_install(req) 
    File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line 629, in easy_install 
    return self.install_item(spec, dist.location, tmpdir, deps) 
    File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line 659, in install_ 
item 
    dists = self.install_eggs(spec, download, tmpdir) 
    File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line 842, in install_ 
eggs 
    return self.build_and_install(setup_script, setup_base) 
    File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line 1070, in build_and_install 
    self.run_setup(setup_script, setup_base, args) 
    File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line 1058, in run_set 
up 
    raise DistutilsError("Setup script exited with %s" % (v.args[0],)) 
distutils.errors.DistutilsError: Setup script exited with error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27 

    ---------------------------------------- 
Command "python setup.py egg_info" failed with error code 1 in  c:\users\spencer\appdata\local\temp\pip-build-i4x0vy\scipy\ 

संपादित करें: पूरे त्रुटि जोड़ा पोस्ट बहुत ज्यादा कोड होता है और नहीं दूँगी मुझे पद, वाक्य की सका इन अगले अनदेखा करें के रूप में यह बस से पहले मैं इस पोस्ट कर सकते हैं आवश्यक राशि को भरने के लिए है। इस वेबसाइट से अजगर के अपने संस्करण के लिए

+0

टिप्पणी अद्यतन इतना है कि यह पूरे त्रुटि – UberKoolMan

+0

आपकी समस्या है अंतर्निहित वैज्ञानिक पुस्तकालयों की कमी के साथ और [इस] (https://www.scipy.org/scipylib/building/windows.html) पृष्ठ के अनुसार वे विंडोज पर निर्माण करने के लिए एक दर्द हैं। Scipy को ठीक से काम करने के लिए संकुल के एक [पूरे ढेर] (https://www.scipy.org/install.html) की आवश्यकता होती है और अनुशंसित समाधान @comattMo द्वारा उत्तर में प्रीकंपील्ड संकुल का उपयोग करना है। –

उत्तर

5

विंडोज़ पर मॉड्यूल के लिए जो संकलन की आवश्यकता है, केवल क्रिस्टोफ गोहल्के के Python Extension Packages for Windows भंडार का उपयोग करें। आप scipyhere डाउनलोड कर सकते हैं, लेकिन जैसा कि संकेत मिलता है कि आपको numpy का एमकेएल संस्करण भी इंस्टॉल करना होगा।

एक बार जब आप .whl फ़ाइलें डाउनलोड कर बस उन्हें

pip install -U wheel_file_name.whl 

-U उन्नयन के लिए है के साथ स्थापित, मामले में आप पहले से ही स्थापित पुराना संस्करण है,।

+0

.whl फ़ाइलों का उपयोग करने और सीधे पीआईपी से स्थापित करने के बीच क्या अंतर है? पूछना क्योंकि मैंने लगभग एक घंटा पीपी के माध्यम से स्थापित करने की कोशिश की (मेरा मतलब है पीपीपी पैकेज) लेकिन इसे काम करने के लिए कभी नहीं मिला। लगभग एनाकोंडा को इस पर सौदा करने जा रहा था, लेकिन आपकी टिप्पणी देखी और उसे स्थापित किया गया। धन्यवाद। –

0

डाउनलोड संस्थापक: https://github.com/scipy/scipy/releases

फ़ाइलों का एक बहुत वेबसाइट से लेकिन जैसे डाउनलोड करने के लिए कर रहे हैं पायथन 2.7 के लिए, सही इंस्टॉलर का नाम scipy-0.16.1-win32-superpack-python2.7.exe फ़ाइल डाउनलोड करने के बाद, आप कुछ क्लिकों से आसानी से Scipy इंस्टॉल कर सकते हैं।

+0

सिवाय इसके कि Scipy का नवीनतम संस्करण 0.17.0 है, और उस पृष्ठ पर इसके लिए कोई निष्पादन योग्य इंस्टॉलर नहीं है। – MattDMo

0

ऐसा लगता है कि आपको साइथन स्थापित करना है। मैं एक ही त्रुटि को मार रहा था और "सुडो पाइप इंस्टॉल साइथन" ने इस मुद्दे को हल किया। यहाँ देखें build scipy error cythonize failed

0

त्रुटियों में यह कहते हैं: "माइक्रोसॉफ्ट विजुअल C++ 9.0 की आवश्यकता है http://aka.ms/vcpython27 से प्राप्त करें (vcvarsall.bat खोजने में असमर्थ)।"