查看numpy是否为64位
时间: 2023-11-14 07:33:03 浏览: 34
您可以使用以下代码来检查您的numpy是否为64位版本:
```
import numpy as np
print(np.show_config())
```
在输出中,您应该看到类似于以下内容的行:
```
blas_mkl_info:
libraries = ['mkl_rt']
library_dirs = ['C:/.../numpy/core/lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
...
runtime_library_dirs = ['C:/.../numpy/core/lib']
...
[mkl_info]
...
platform: win32
...
C compiler: cl.exe
...
[blas_mkl_info]
...
NOT AVAILABLE
blis_info:
libraries = ['blis']
library_dirs = ['C:/.../numpy/core/lib']
...
runtime_library_dirs = ['C:/.../numpy/core/lib']
...
[blis_info]
...
NOT AVAILABLE
openblas_info:
libraries = ['openblas']
...
runtime_library_dirs = ['C:/.../numpy/core/lib']
...
[openblas_info]
...
NOT AVAILABLE
lapack_mkl_info:
libraries = ['mkl_rt']
library_dirs = ['C:/.../numpy/core/lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
...
runtime_library_dirs = ['C:/.../numpy/core/lib']
...
[mkl_info]
...
platform: win32
...
C compiler: cl.exe
...
[lapack_mkl_info]
...
NOT AVAILABLE
openblas_lapack_info:
libraries = ['openblas', 'openblas']
...
runtime_library_dirs = ['C:/.../numpy/core/lib']
...
[openblas_lapack_info]
...
NOT AVAILABLE
blas_opt_info:
libraries = ['mkl_rt']
library_dirs = ['C:/.../numpy/core/lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
...
runtime_library_dirs = ['C:/.../numpy/core/lib']
...
[mkl_info]
...
platform: win32
...
C compiler: cl.exe
...
[blas_opt_info]
...
NOT AVAILABLE
lapack_opt_info:
libraries = ['mkl_rt']
library_dirs = ['C:/.../numpy/core/lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
...
runtime_library_dirs = ['C:/.../numpy/core/lib']
...
[mkl_info]
...
platform: win32
...
C compiler: cl.exe
...
[lapack_opt_info]
...
NOT AVAILABLE
lapack_info:
libraries = ['mkl_rt']
library_dirs = ['C:/.../numpy/core/lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
...
runtime_library_dirs = ['C:/.../numpy/core/lib']
...
[mkl_info]
...
platform: win32
...
C compiler: cl.exe
...
[lapack_info]
...
NOT AVAILABLE
mkl_info:
libraries = ['mkl_rt']
library_dirs = ['C:/.../numpy/core/lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
...
runtime_library_dirs = ['C:/.../numpy/core/lib']
...
[mkl_info]
...
platform: win32
...
C compiler: cl.exe
...
[mkl_info]
...
NOT AVAILABLE
blas_info:
libraries = ['blas']
...
runtime_library_dirs = []
...
[blas_info]
...
NOT AVAILABLE
lapack_info:
libraries = ['lapack']
...
runtime_library_dirs = []
...
[lapack_info]
...
NOT AVAILABLE
lapack_src_info:
NOT AVAILABLE
...
```
在这个输出中,您应该找到一个名为`platform`的部分,其中包含操作系统和处理器架构的信息。如果您的numpy是64位版本,则应该看到`platform: win-amd64`(对于Windows系统)或类似的内容。如果您的numpy是32位版本,则应该看到`platform: win32`。
相关推荐
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![whl](https://img-home.csdnimg.cn/images/20210720083646.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)