2016-11-30 10 views
6

私はPython 3.6b3をWindowsで開発中の長いプロジェクトに使用しています。 このプロジェクトではNumPyも必要です。 私はPython36 -m pipをnumpyにインストールしようとしましたが、pipがまだベータ版ではないようです。 NumPy for Python 3.6b3をインストールする最も良い方法は何ですか?NumPy for Python 3.6をインストールするには

[EDIT:追加インストールログは、使用後にensurepip]

D:\aaa\numpy-1.12.0b1>call C:\Python36\python.exe -m pip install numpy 
Collecting numpy 
    Using cached numpy-1.11.2.tar.gz 
Installing collected packages: numpy 
    Running setup.py install for numpy: started 
    Running setup.py install for numpy: finished with status 'error' 
    Complete output from command C:\Python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\info_000\\AppData\\Local\\Temp\\pip-build-ueljt0po\\numpy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\info_000\AppData\Local\Temp\pip-nmezr3c7-record\install-record.txt --single-version-externally-managed --compile: 
    Running from numpy source directory. 

    Note: if you need reliable uninstall behavior, then install 
    with pip instead of using `setup.py install`: 

     - `pip install .`  (from a git repo or downloaded source 
           release) 
     - `pip install numpy` (last Numpy release on PyPi) 


    blas_opt_info: 
    blas_mkl_info: 
     libraries mkl_rt not found in ['C:\\Python36\\lib', 'C:\\', 'C:\\Python36\\libs'] 
     NOT AVAILABLE 

    openblas_info: 
     libraries openblas not found in ['C:\\Python36\\lib', 'C:\\', 'C:\\Python36\\libs'] 
     NOT AVAILABLE 

    atlas_3_10_blas_threads_info: 
    Setting PTATLAS=ATLAS 
     libraries tatlas not found in ['C:\\Python36\\lib', 'C:\\', 'C:\\Python36\\libs'] 
     NOT AVAILABLE 

    atlas_3_10_blas_info: 
     libraries satlas not found in ['C:\\Python36\\lib', 'C:\\', 'C:\\Python36\\libs'] 
     NOT AVAILABLE 

    atlas_blas_threads_info: 
    Setting PTATLAS=ATLAS 
     libraries ptf77blas,ptcblas,atlas not found in ['C:\\Python36\\lib', 'C:\\', 'C:\\Python36\\libs'] 
     NOT AVAILABLE 

    atlas_blas_info: 
     libraries f77blas,cblas,atlas not found in ['C:\\Python36\\lib', 'C:\\', 'C:\\Python36\\libs'] 
     NOT AVAILABLE 

    C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy\numpy\distutils\system_info.py:1630: 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__) 
    blas_info: 
     libraries blas not found in ['C:\\Python36\\lib', 'C:\\', 'C:\\Python36\\libs'] 
     NOT AVAILABLE 

    C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy\numpy\distutils\system_info.py:1639: 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__) 
    blas_src_info: 
     NOT AVAILABLE 

    C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy\numpy\distutils\system_info.py:1642: 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__) 
     NOT AVAILABLE 

    non-existing path in 'numpy\\distutils': 'site.cfg' 
    F2PY Version 2 
    lapack_opt_info: 
    openblas_lapack_info: 
     libraries openblas not found in ['C:\\Python36\\lib', 'C:\\', 'C:\\Python36\\libs'] 
     NOT AVAILABLE 

    lapack_mkl_info: 
     libraries mkl_rt not found in ['C:\\Python36\\lib', 'C:\\', 'C:\\Python36\\libs'] 
     NOT AVAILABLE 

    atlas_3_10_threads_info: 
    Setting PTATLAS=ATLAS 
     libraries tatlas,tatlas not found in C:\Python36\lib 
     libraries lapack_atlas not found in C:\Python36\lib 
     libraries tatlas,tatlas not found in C:\ 
     libraries lapack_atlas not found in C:\ 
     libraries tatlas,tatlas not found in C:\Python36\libs 
     libraries lapack_atlas not found in C:\Python36\libs 
    <class 'numpy.distutils.system_info.atlas_3_10_threads_info'> 
     NOT AVAILABLE 

    atlas_3_10_info: 
     libraries satlas,satlas not found in C:\Python36\lib 
     libraries lapack_atlas not found in C:\Python36\lib 
     libraries satlas,satlas not found in C:\ 
     libraries lapack_atlas not found in C:\ 
     libraries satlas,satlas not found in C:\Python36\libs 
     libraries lapack_atlas not found in C:\Python36\libs 
    <class 'numpy.distutils.system_info.atlas_3_10_info'> 
     NOT AVAILABLE 

    atlas_threads_info: 
    Setting PTATLAS=ATLAS 
     libraries ptf77blas,ptcblas,atlas not found in C:\Python36\lib 
     libraries lapack_atlas not found in C:\Python36\lib 
     libraries ptf77blas,ptcblas,atlas not found in C:\ 
     libraries lapack_atlas not found in C:\ 
     libraries ptf77blas,ptcblas,atlas not found in C:\Python36\libs 
     libraries lapack_atlas not found in C:\Python36\libs 
    <class 'numpy.distutils.system_info.atlas_threads_info'> 
     NOT AVAILABLE 

    atlas_info: 
     libraries f77blas,cblas,atlas not found in C:\Python36\lib 
     libraries lapack_atlas not found in C:\Python36\lib 
     libraries f77blas,cblas,atlas not found in C:\ 
     libraries lapack_atlas not found in C:\ 
     libraries f77blas,cblas,atlas not found in C:\Python36\libs 
     libraries lapack_atlas not found in C:\Python36\libs 
    <class 'numpy.distutils.system_info.atlas_info'> 
     NOT AVAILABLE 

    C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy\numpy\distutils\system_info.py:1532: 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__) 
    lapack_info: 
     libraries lapack not found in ['C:\\Python36\\lib', 'C:\\', 'C:\\Python36\\libs'] 
     NOT AVAILABLE 

    C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy\numpy\distutils\system_info.py:1543: 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__) 
    lapack_src_info: 
     NOT AVAILABLE 

    C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy\numpy\distutils\system_info.py:1546: 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__) 
     NOT AVAILABLE 

    C:\Python36\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'define_macros' 
     warnings.warn(msg) 
    running install 
    running build 
    running config_cc 
    unifing config_cc, config, build_clib, build_ext, build commands --compiler options 
    running config_fc 
    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options 
    running build_src 
    build_src 
    building py_modules sources 
    creating build 
    creating build\src.win-amd64-3.6 
    creating build\src.win-amd64-3.6\numpy 
    creating build\src.win-amd64-3.6\numpy\distutils 
    building library "npymath" sources 
    No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils 
    customize GnuFCompiler 
    Could not locate executable g77 
    Could not locate executable f77 
    customize IntelVisualFCompiler 
    Could not locate executable ifort 
    Could not locate executable ifl 
    customize AbsoftFCompiler 
    Could not locate executable f90 
    customize CompaqVisualFCompiler 
    Could not locate executable DF 
    customize IntelItaniumVisualFCompiler 
    Could not locate executable efl 
    customize Gnu95FCompiler 
    Could not locate executable gfortran 
    Could not locate executable f95 
    customize G95FCompiler 
    Could not locate executable g95 
    customize IntelEM64VisualFCompiler 
    customize IntelEM64TFCompiler 
    Could not locate executable efort 
    Could not locate executable efc 
    don't know how to compile Fortran code on platform 'nt' 
    cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Inumpy\core\src\private -Inumpy\core\src -Inumpy\core -Inumpy\core\src\npymath -Inumpy\core\src\multiarray -Inumpy\core\src\umath -Inumpy\core\src\npysort -IC:\Python36\include -IC:\Python36\include /Tc_configtest.c /Fo_configtest.obj 
    Could not locate executable cl.exe 
    Executable cl.exe does not exist 

    failure. 
    removing: _configtest.c _configtest.obj 
    Traceback (most recent call last): 
     File "<string>", line 1, in <module> 
     File "C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy\setup.py", line 386, in <module> 
     setup_package() 
     File "C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy\setup.py", line 378, in setup_package 
     setup(**metadata) 
     File "C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy\numpy\distutils\core.py", line 169, in setup 
     return old_setup(**new_attr) 
     File "C:\Python36\lib\distutils\core.py", line 148, in setup 
     dist.run_commands() 
     File "C:\Python36\lib\distutils\dist.py", line 955, in run_commands 
     self.run_command(cmd) 
     File "C:\Python36\lib\distutils\dist.py", line 974, in run_command 
     cmd_obj.run() 
     File "C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy\numpy\distutils\command\install.py", line 62, in run 
     r = self.setuptools_run() 
     File "C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy\numpy\distutils\command\install.py", line 36, in setuptools_run 
     return distutils_install.run(self) 
     File "C:\Python36\lib\distutils\command\install.py", line 545, in run 
     self.run_command('build') 
     File "C:\Python36\lib\distutils\cmd.py", line 313, in run_command 
     self.distribution.run_command(command) 
     File "C:\Python36\lib\distutils\dist.py", line 974, in run_command 
     cmd_obj.run() 
     File "C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy\numpy\distutils\command\build.py", line 47, in run 
     old_build.run(self) 
     File "C:\Python36\lib\distutils\command\build.py", line 135, in run 
     self.run_command(cmd_name) 
     File "C:\Python36\lib\distutils\cmd.py", line 313, in run_command 
     self.distribution.run_command(command) 
     File "C:\Python36\lib\distutils\dist.py", line 974, in run_command 
     cmd_obj.run() 
     File "C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy\numpy\distutils\command\build_src.py", line 147, in run 
     self.build_sources() 
     File "C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy\numpy\distutils\command\build_src.py", line 158, in build_sources 
     self.build_library_sources(*libname_info) 
     File "C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy\numpy\distutils\command\build_src.py", line 293, in build_library_sources 
     sources = self.generate_sources(sources, (lib_name, build_info)) 
     File "C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy\numpy\distutils\command\build_src.py", line 376, in generate_sources 
     source = func(extension, build_dir) 
     File "numpy\core\setup.py", line 653, in get_mathlib_info 
     raise RuntimeError("Broken toolchain: cannot link a simple C program") 
    RuntimeError: Broken toolchain: cannot link a simple C program 

    ---------------------------------------- 
+0

最終時間は、3.6は開発中のあまり、あまりにも新しいました。 – hpaulj

+0

@hpauljあなたが正しいかもしれません。ちょうどそのような恥をfstringsを欠場するが、おそらく私はPython 3.5に退却する必要があります。 –

答えて

1

ピップ自体は、Pythonの一部ではありません。しかし、バージョン3.4のPythonには、ピュアインストールのブートストラップを可能にするensurepip moduleが含まれています。電話後に

python3.6 -m ensurepip 

あなたはpip経由でnumpyをインストールできるはずです。

+0

私は実際にその方法でピルを導入することができます。しかし、私がそれを使うとき、何かが間違っています。私は私の質問にインストールログを追加します。 –

+1

Python 3.6にはプリコンパイルされたnumpyホイールはありませんので、numpyをコンパイルする必要があります。どのように敵意を持っているWindowsがソフトウェア開発のプラットフォームであるかを考えると、すべての依存関係を正しく取得するのはやや難しいことではありません。私はこの特別な種類の地獄を1999年に残しておきました。:) –

+0

ヒントをありがとう!残念ながら私の顧客のユーザーのWindowsは... –

0

EDIT:私はこの質問を誤解していますが、この回答は無視してください。

手動でdownloading the wheel from pypiを試して手動でインストールしてください。 Windows上 、それは次のようになります。

C:/path/to/python36/pip.exe install C:/path/to/numpy_foo_.whl 
5

を限り、バイナリパッケージはまだは、PyPIにリリースされていない3.6のために(「車輪をいわゆる」)として、あなたが非公式に頼る(しかし作業)することができます利用可能なものはhttp://www.lfd.uci.edu/~gohlke/pythonlibs/です。ファイルをダウンロードし、このようにそれをインストールします。

pip install C:\path\to\numpy‑1.11.3+mkl‑cp36‑cp36m‑win_amd64.whl 
1

ピップはいつものPython 3.6のインストールディレクトリのサブディレクトリ\Scriptsにインストールされています。

Windowsのコマンドプロンプトを開き、ディレクトリを\Scriptsに変更し、pip listを入力すると、何がインストールされているかがわかり、pip install numpyを入力するとnumpyがインストールされます。

0

ここでは、Windows上にnumpyをインストールするために実行する必要のある手順の一覧を示します。これは私のために働いた。 python- Cの

  1. 設定パス変数:\ Users \ユーザーXXXXXXX \のAppData \ローカル\プログラム\ Pythonの\ Python36-32
  2. ダウンロードget-pip.pyローカル
  3. オープンCMDとGET-に移動pip.pyファイル
  4. PIPのインストールのためにpython get-pip.pyを実行
  5. 環境変数envのパスをC:\ Users \ XXXXXX \ AppData \ Local \ Programs \ Python \ Python36-32 \ Scriptsに設定します。
  6. ピップはnumpyのをインストールし、私はこのような質問を見た
関連する問題