64 비트 Windows에 SciPy를 어떻게 설치합니까?
내 시스템에 SciPy를 어떻게 설치합니까?
NumPy 부분 (SciPy가 의존하는 부분)의 경우 실제로 64 비트 Windows 용 설치 프로그램이 있습니다 : numpy-1.3.0.win-amd64-py2.6.msi (직접 다운로드 URL, 2310144 바이트).
SciPy 슈퍼 팩 설치 프로그램을 실행하면 대화 상자에 다음 메시지가 나타납니다.
설치할 수 없습니다. 레지스트리에서 찾을 수없는 Python 버전 2.6이 필요합니다.
이미 Python 2.6.2가 설치되어 있고 (그리고 작동하는 Django 설치도 포함되어 있습니다) 레지스트리에 대해 잘 모릅니다.
레지스트리 항목이 이미있는 것 같습니다.
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Python]
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore]
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.6]
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.6\Help]
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.6\Help\Main Python Documentation]
@="D:\\Python262\\Doc\\python262.chm"
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.6\InstallPath]
@="D:\\Python262\\"
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.6\InstallPath\InstallGroup]
@="Python 2.6"
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.6\Modules]
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.6\PythonPath]
@="D:\\Python262\\Lib;D:\\Python262\\DLLs;D:\\Python262\\Lib\\lib-tk"
지금까지 내가 한 일 :
1 단계
NumPy 슈퍼 팩 설치 프로그램 numpy-1.3.0rc2-win32-superpack-python2.6.exe를 다운로드했습니다 ( 직접 다운로드 URL , 4782592 바이트). 이 설치 프로그램을 실행하면 "설치할 수 없습니다. Python 버전 2.6이 필요합니다. 레지스트리에서 찾을 수 없습니다."라는 메시지가 표시됩니다. 업데이트 : 실제로 작동하는 NumPy 설치 프로그램이 있습니다-질문의 시작 부분을 참조하십시오.
2 단계
NumPy를 다른 방법으로 설치하려고했습니다. zip 패키지 numpy-1.3.0rc2.zip ( 직접 다운로드 URL , 2404011 바이트)을 다운로드 하고 일반적인 방법으로 임시 디렉토리 D : \ temp7 \ numpy-1.3.0rc2 (여기서 setup.py 및 README .txt는)입니다. 그런 다음 명령 줄 창을 열고 다음을 수행했습니다.
d:
cd D:\temp7\numpy-1.3.0rc2
setup.py install
이것은 오랫동안 실행되었으며 cl.exe (Visual Studio의 일부) 사용도 포함했습니다. 다음은 거의 5000 줄에 가까운 대본 (230KB)입니다.
이것은 작동하는 것 같았습니다. 이제 Python에서이 작업을 수행 할 수 있습니다.
import numpy as np
np.random.random(10)
이 결과 :
array([ 0.35667511, 0.56099423, 0.38423629, 0.09733172, 0.81560421,
0.18813222, 0.10566666, 0.84968066, 0.79472597, 0.30997724])
3 단계
SciPy 슈퍼 팩 설치 프로그램, scipy-0.7.1rc3- win32-superpack-python2.6.exe ( 직접 다운로드 URL , 45597175 바이트)를 다운로드했습니다 . 이 설치 프로그램을 실행하면 처음에 나열된 메시지가 나타납니다.
4 단계
다른 방법으로 SciPy를 설치하려고했습니다. zip 패키지 scipy-0.7.1rc3.zip ( 직접 다운로드 URL , 5506562 바이트)을 다운로드 하고 일반적인 방법으로 임시 디렉토리 D : \ temp7 \ scipy-0.7.1 (여기서 setup.py 및 README .txt는)입니다. 그런 다음 명령 줄 창을 열고 다음을 수행했습니다.
d:
cd D:\temp7\scipy-0.7.1
setup.py install
이것은 많은 것을 성취하지 못했습니다-여기에 대본이 있습니다 (약 95 줄).
그리고 실패합니다.
>>> import scipy as sp2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named scipy
플랫폼 : D : \ Python262 디렉터리에 Python 2.6.2 설치, Windows XP 64 비트 SP2, 8GB RAM, Visual Studio 2008 Professional Edition 설치.
설치된 Python의 시작 화면은 다음과 같습니다.
Python 2.6.2 (r262:71605, Apr 14 2009, 22:46:50) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
PATH 값, 명령 줄 창의 SET 결과 :
Path=D:\Perl64\site\bin;D:\Perl64\bin;C:\Program Files (x86)\PC Connectivity Solution\;D:\Perl\site\bin;D:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;d:\Program Files (x86)\WinSCP\;D:\MassLynx\;D:\Program Files (x86)\Analyst\bin;d:\Python262;d:\Python262\Scripts;D:\Program Files (x86)\TortoiseSVN\bin;D:\Program Files\TortoiseSVN\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;D:\Program Files (x86)\IDM Computer Solutions\UltraEdit\
시도해 보지는 않았지만 이 버전 의 Portable Python 을 다운로드하는 것이 좋습니다 . Python 2.5.4에서 실행되는 Scipy-0.7.0b1과 함께 제공됩니다.
NumPy 및 SciPy 용 비공식 64 비트 설치 프로그램 은 http://www.lfd.uci.edu/~gohlke/pythonlibs/ 에서 구할 수 있습니다 .
CPython 버전 및 비트 (예 : cp35= Python v3.5; win_amd64= x86_64) 와 일치하는 패키지 (일명 휠)를 다운로드하고 설치해야합니다 .
먼저 NumPy 를 설치 하고 싶을 것입니다 . 시스템 전체 (일명 프로그램 파일) 설치를위한 관리자 권한이있는 CMD 프롬프트에서 :
C:\>pip install numpy‑<version>+mkl‑cp<ver-spec>‑cp<ver-spec>m‑<cpu-build>.whl
또는 관리자 가 아닌 CMD 프롬프트--user에서 현재 사용자의 애플리케이션 폴더 (일반적%APPDATA%\Python으로 Windows)에설치할 플래그를포함합니다.
C:\>pip install --user numpy‑<version>+mkl‑cp<ver-spec>‑cp<ver-spec>m‑<cpu-build>.whl
그런 다음 SciPy에 대해 동일하게 수행하십시오.
C:\>pip install [--user] scipy‑<version>‑cp<ver-spec>‑cp<ver-spec>m‑<cpu-build>.whl
교체하는 것을 잊지 마세요 <version>, <ver-spec>그리고 <cpu-build>당신이 복사 & 적절한 경우 이러한 예 중 하나를 붙여 넣습니다. 또한 위의 ifd.uci.edu 링크에있는 numpy & scipy 패키지를 사용해야합니다 (그렇지 않으면 호환되지 않는 패키지를 혼합하고 일치 시키려고하면 오류가 발생합니다. 충돌하는 패키지를 먼저 제거하십시오 [예 pip list]).
간단한 답변 : Windows 64 비트 지원은 현재 진행 중입니다. 수퍼 팩은 확실히 64 비트 Python에서는 작동하지 않습니다 (하지만 Windows 64 비트에서도 32 비트 Python에서는 잘 작동합니다).
Windows 64 비트의 주요 문제는 mingw-w64로 빌드하는 것이이 시점에서 안정적이지 않다는 것입니다. 이것은 우리의 (NumPy 개발자) 결함, Python의 결함 또는 mingw-w64 일 수 있습니다. 아마도 모든 것의 조합 일 것입니다. :). 따라서 독점 컴파일러를 사용해야합니다. Microsoft 컴파일러 이외의 모든 것은 NumPy를 무작위로 충돌시킵니다. Fortran 컴파일러의 경우 ifort가 사용할 수 있습니다. 현재 NumPy 및 SciPy 소스 코드는 Visual Studio 2008 및 ifort (모든 테스트 통과)로 컴파일 할 수 있지만 빌드하는 것은 여전히 상당히 고통스럽고 NumPy 빌드 인프라에서 잘 지원되지 않습니다.
SciPy의 대본에서 말했듯이 SciPy는 실제로 Win64에서 작동하도록되어 있지 않습니다.
Warning: Windows 64 bits support is experimental, and only available for
testing. You are advised not to use it for production.
따라서 32 비트 버전의 Python을 설치하고 SciPy를 직접 빌드하지 않는 것이 좋습니다. 그래도 시도하고 싶다면 먼저 PiotrLegnica가 말한 것처럼 BLAS와 LAPACK을 컴파일해야합니다. 이러한 라이브러리의 컴파일 된 버전을 찾고 있던 곳은 대본을 참조하십시오.
WinPython 은 64 비트 NumPy 및 SciPy가있는 오픈 소스 배포판입니다.
다른 대안 : http://www.pythonxy.com/
무료이며 원활하게 함께 작동하기위한 많은 항목이 포함되어 있습니다.
이 사람 은 말한다
linux.pythonxy를 사용해 보셨습니까? ( http://linux.pythonxy.com ).
64 비트 준비 완료 ...
그게 무슨 뜻인지 잘 모르겠지만.
최신 정보:
이것은 죽은 것 같습니다. 지금은 32 비트 또는 64 비트 설치 프로그램이있는 Anaconda를 사용 합니다.
완전성을 위해 : Enthought 에는 SciPy가 포함 된 Python 배포판이 있습니다. 그러나 그것은 무료가 아닙니다. 주의 사항 : 나는 그것을 사용한 적이 없습니다.
업데이트 :이 답변은 찬성 투표로 다시 돌아올 때까지 오랫동안 잊혀졌습니다. 이번에 는 무료 인 Anaconda에 대한 endolith의 제안 을 두 번째로 하겠습니다 .
2.6.2 위에 Python 2.6.3을 설치하거나 (올바른 레지스트리 항목도 추가해야 함) 이 스크립트를 사용 하여 기존 설치를 등록하십시오 . 그 후에 설치 프로그램이 작동합니다.
SciPy를 빌드하려면 Fortran 컴파일러와 라이브러리 ( BLAS 및 LAPACK)가 필요 합니다.
이러한 Python 데이터 과학 패키지를 Windows에 독립적으로 설치하는 것은 끔찍합니다. Anaconda를 사용해보십시오 (설치 프로그램 1 개, Python 패키지 400 개 이상, py2 및 py3 지원). Anaconda는 정말 저를 많이 도와줍니다!
64 비트 Windows 8.1 컴퓨터에 32 비트 Python 3.5가 있습니다. 방금 Stack Overflow에서 찾을 수있는 거의 모든 방법을 시도했지만 아무도 작동하지 않습니다!
그런 다음 여기 에서 찾았습니다. 그것은 말한다 :
SciPy는 수학, 과학 및 공학용 소프트웨어입니다.
numpy + mkl이 필요합니다 .
scipy를 설치하기 전에 numpy + mkl을 설치하십시오.
mkl이 중요합니다 !! 그러나 아무도 그것에 대해 전에는 아무 말도하지 않았습니다!
그런 다음 mkl을 설치했습니다.
C:\Users\****\Desktop\a> pip install mkl_service-1.1.2-cp35-cp35m-win32.whl
Processing c:\users\****\desktop\a\mkl_service-1.1.2-cp35-cp35m-win32.whl
Installing collected packages: mkl-service
Successfully installed mkl-service-1.1.2
그런 다음 SciPy를 설치했습니다.
C:\Users\****\Desktop\a>pip install scipy-0.18.1-cp35-cp35m-win32.whl
Processing c:\users\****\desktop\a\scipy-0.18.1-cp35-cp35m-win32.whl
Installing collected packages: scipy
Successfully installed scipy-0.18.1
됐어 ~ 네 :)
팁 : "whl_file_name.whl"을 Google에서 다운로드 할 위치를 알 수 있습니다 ~ :)
최신 정보:
이 모든 단계를 마친 후에도 여전히 Python 3에서 SciPy를 사용할 수 없다는 것을 알게 될 것입니다. "import scipy"를 인쇄하면 오류 메시지가 표시되지만 걱정하지 마세요.해야 할 일이 하나 더 있습니다. 여기 —— 간단하고 유용한 해당 줄을 주석 처리하십시오.
from numpy._distributor_init import NUMPY_MKL
마지막으로 할 일이라고 약속합니다 :)
추신 :이 모든 단계를 수행하기 전에 먼저 NumPy를 설치하는 것이 좋습니다. 이 명령을 사용하면 매우 간단합니다.
pip install numpy
Python 배포판 http://www.python.org/download/를 설치합니다 .
Anaconda Python 배포를 다운로드하고 설치합니다.
NumPy, SciPy 또는 Matplotlib가 Python 3.3에서 작동하도록하려면 Anaconda Python 배포 링크를 Python 3.3으로 만드십시오. 또는 Python 2.7 및 이전 기능 만 갖도록 사용하십시오.
The blog post Anaconda Python Distribution Python 3.3 linking provides more detail about Anaconda.
I was getting this same error on a 32-bit machine. I fixed it by registering my Python installation, using the script at:
http://effbot.org/zone/python-register.htm
It's possible that the script would also make the 64-bit superpack installers work.
You can either download a scientific Python distribution. One of the ones mentioned here: https://scipy.org/install.html
Or pip install from a whl file here if the above is not an option for you.
http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
Okay a lot has been said, but just in case nothing of the previous answers work, you can try;
https://www.scipy.org/install.html
According to them;
For most users, especially on Windows, the easiest way to install the packages of the SciPy stack is to download one of these Python distributions, which include all the key packages:
- Anacond: A free distribution for the SciPy stack. Supports Linux, Windows and Mac.
- Enthought Canopy: The free and commercial versions include the core SciPy stack packages. Supports Linux, Windows and Mac.
- Python(x,y) A free distribution including the SciPy stack, based around the Spyder IDE. Windows only.
- WinPython: A free distribution including the SciPy stack. Windows only.
- Pyzo: A free distribution based on Anaconda and the IEP interactive development environment. Supports Linux, Windows and Mac.
Still for me, Anaconda did solve this problem. Do remember to check the bit (32/64 bit) version before downloading and re-adjust your compiler to the Python implementation installed with the Python distribution you are installing.
Okey, here I am going to share what I have done to install SciPy on my Windows PC without the command line.
My PC configuration is Windows 7 64-bit and Python 2.7
- First I download the required packages form http://www.lfd.uci.edu/~gohlke/pythonlibs/ (which version match your configuration EX: cp27==>python2.7 & cp35==>3.5)
- Second I extract the file using 7-Zip (also can be used any zipper like WinRAR)
- Third I copy the
scipyfolder which I extracted and paste it intoC:\Python27\Lib\site-packages(or put it where the exact location is in your PC like..\..\Lib\site-packages)
NOTE: You have to install NumPy first before installing SciPy in this same way.
I found this solution after days.
Firstly, which Python version you want to install?
If you want for Python 2.7 version:
STEP 1:
scipy‑0.19.0‑cp27‑cp27m‑win32.whl
scipy‑0.19.0‑cp27‑cp27m‑win_amd64.whl
numpy‑1.11.3+mkl‑cp27‑cp27m‑win32.whl
numpy‑1.11.3+mkl‑cp27‑cp27m‑win_amd64.whl
If you want for Python 3.4 version:
scipy‑0.19.0‑cp34‑cp34m‑win32.whl
scipy‑0.19.0‑cp34‑cp34m‑win_amd64.whl
numpy‑1.11.3+mkl‑cp34‑cp34m‑win32.whl
numpy‑1.11.3+mkl‑cp34‑cp34m‑win_amd64.whl
If you want for Python 3.5 version:
scipy‑0.19.0‑cp35‑cp35m‑win32.whl
scipy‑0.19.0‑cp35‑cp35m‑win_amd64.whl
numpy‑1.11.3 + mkl‑cp35‑cp35m‑win32.whl
numpy‑1.11.3 + mkl‑cp35‑cp35m‑win_amd64.whl
Python 3.6 버전을 원하는 경우 :
scipy‑0.19.0‑cp36‑cp36m‑win32.whl
scipy‑0.19.0‑cp36‑cp36m‑win_amd64.whl
numpy‑1.11.3 + mkl‑cp36‑cp36m‑win32.whl
numpy‑1.11.3 + mkl‑cp36‑cp36m‑win_amd64.whl
링크 : 클릭
설치가 끝나면 디렉토리로 이동하십시오.
예를 들어, 내 디렉토리 :
cd C:\Users\asus\AppData\Local\Programs\Python\Python35\Scripts>
pip install [where/is/your/downloaded/scipy_whl.]
2 단계:
NumPy + MKL
다시 Python 버전을 기반으로 한 동일한 웹 사이트에서 :
그 후 스크립트 폴더에서 동일한 것을 다시 사용하십시오.
cd C:\Users\asus\AppData\Local\Programs\Python\Python35\Scripts>
pip3 install [where/is/your/downloaded/numpy_whl.]
그리고 Python 폴더에서 테스트하십시오.
Python35>python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
참고 URL : https://stackoverflow.com/questions/1517129/how-do-i-install-scipy-on-64-bit-windows
'IT TIP' 카테고리의 다른 글
| Angular2-앱 외부에서 구성 요소 함수를 호출하는 방법 (0) | 2020.11.20 |
|---|---|
| 별 5 개 등급으로 정렬하는 더 좋은 방법은 무엇입니까? (0) | 2020.11.20 |
| C #을 네이티브로 컴파일 하시겠습니까? (0) | 2020.11.20 |
| Django를 다른 get 변수로 페이지 매김하는 방법은 무엇입니까? (0) | 2020.11.20 |
| git bash Windows 바로 가기를 수정할 수 없습니다. (0) | 2020.11.20 |
