Python 使用pip在Pypy上安装软件包时出现问题
我想使用Pypy更快地运行一组数据转换,但我需要安装numpy,以便脚本不受影响地运行(显然我可以更改脚本,但这不是重点)。我试着按照医生告诉我的那样使用pip,但它就是不起作用。这给了我一个关于没有Visual Studio 14.1的错误,理论上我确实有(我安装了尽可能多的可再发行文件,包括2017版,据我所知,它与14.1版相同) 我也知道下载模块并执行设置或从github克隆它的可能性,但是让pip工作会很好,因为我有兴趣在不久的将来下载其中的很多 不过,说到Windows,我还是很不爽,所以如果你知道它为什么不工作,我会很高兴的 这是我从Windows Shell获得的错误和日志:Python 使用pip在Pypy上安装软件包时出现问题,python,windows,visual-studio,pip,pypy,Python,Windows,Visual Studio,Pip,Pypy,我想使用Pypy更快地运行一组数据转换,但我需要安装numpy,以便脚本不受影响地运行(显然我可以更改脚本,但这不是重点)。我试着按照医生告诉我的那样使用pip,但它就是不起作用。这给了我一个关于没有Visual Studio 14.1的错误,理论上我确实有(我安装了尽可能多的可再发行文件,包括2017版,据我所知,它与14.1版相同) 我也知道下载模块并执行设置或从github克隆它的可能性,但是让pip工作会很好,因为我有兴趣在不久的将来下载其中的很多 不过,说到Windows,我还是很不爽
PS C:\WINDOWS\system32>pypy3 -m ensurepip
PS C:\WINDOWS\system32>pypy3 -m pip install numpy
Collecting numpy
Using cached https://files.pythonhosted.org/packages/b6/d6/be8f975f5322336f62371c9abeb936d592c98c047ad63035f1b38ae08efe/numpy-1.17.3.zip
Installing collected packages: numpy
Running setup.py install for numpy ... error
Complete output from command "C:\Program Files (x86)\Pypy\pypy3.6-v7.2.0-win32\pypy3.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\alefe\\AppData\\Local\\Temp\\pip-install-uvuig992\\numpy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alefe\AppData\Local\Temp\pip-record-xm3lustt\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:
customize MSVCCompiler
libraries mkl_rt not found in ['C:\\', 'C:\\Program Files (x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs']
NOT AVAILABLE
blis_info:
customize MSVCCompiler
libraries blis not found in ['C:\\', 'C:\\Program Files (x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs']
NOT AVAILABLE
openblas_info:
customize MSVCCompiler
customize MSVCCompiler
libraries openblas not found in ['C:\\', 'C:\\Program Files (x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs']
get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
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
customize PGroupFlangCompiler
Could not locate executable flang
don't know how to compile Fortran code on platform 'nt'
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
customize MSVCCompiler
libraries tatlas not found in ['C:\\', 'C:\\Program Files (x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs']
NOT AVAILABLE
atlas_3_10_blas_info:
customize MSVCCompiler
libraries satlas not found in ['C:\\', 'C:\\Program Files (x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
customize MSVCCompiler
libraries ptf77blas,ptcblas,atlas not found in ['C:\\', 'C:\\Program Files (x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs']
NOT AVAILABLE
atlas_blas_info:
customize MSVCCompiler
libraries f77blas,cblas,atlas not found in ['C:\\', 'C:\\Program Files (x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs']
NOT AVAILABLE
accelerate_info:
NOT AVAILABLE
C:\Users\alefe\AppData\Local\Temp\pip-install-uvuig992\numpy\numpy\distutils\system_info.py:690: UserWarning:
Optimized (vendor) Blas libraries are not found.
Falls back to netlib Blas library which has worse performance.
A better performance should be easily gained by switching
Blas library.
self.calc_info()
blas_info:
customize MSVCCompiler
libraries blas not found in ['C:\\', 'C:\\Program Files (x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs']
NOT AVAILABLE
C:\Users\alefe\AppData\Local\Temp\pip-install-uvuig992\numpy\numpy\distutils\system_info.py:690: 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.
self.calc_info()
blas_src_info:
NOT AVAILABLE
C:\Users\alefe\AppData\Local\Temp\pip-install-uvuig992\numpy\numpy\distutils\system_info.py:690: 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.
self.calc_info()
NOT AVAILABLE
'svnversion' nÆo \u201a reconhecido como um comando interno
ou externo, um programa oper vel ou um arquivo em lotes.
non-existing path in 'numpy\\distutils': 'site.cfg'
lapack_opt_info:
lapack_mkl_info:
customize MSVCCompiler
libraries mkl_rt not found in ['C:\\', 'C:\\Program Files (x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs']
NOT AVAILABLE
openblas_lapack_info:
customize MSVCCompiler
customize MSVCCompiler
libraries openblas not found in ['C:\\', 'C:\\Program Files (x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs']
NOT AVAILABLE
openblas_clapack_info:
customize MSVCCompiler
customize MSVCCompiler
libraries openblas,lapack not found in ['C:\\', 'C:\\Program Files (x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs']
NOT AVAILABLE
flame_info:
customize MSVCCompiler
libraries flame not found in ['C:\\', 'C:\\Program Files (x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
customize MSVCCompiler
libraries lapack_atlas not found in C:\
customize MSVCCompiler
libraries tatlas,tatlas not found in C:\
customize MSVCCompiler
libraries lapack_atlas not found in C:\Program Files (x86)\Pypy\pypy3.6-v7.2.0-win32\libs
customize MSVCCompiler
libraries tatlas,tatlas not found in C:\Program Files (x86)\Pypy\pypy3.6-v7.2.0-win32\libs
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
customize MSVCCompiler
libraries lapack_atlas not found in C:\
customize MSVCCompiler
libraries satlas,satlas not found in C:\
customize MSVCCompiler
libraries lapack_atlas not found in C:\Program Files (x86)\Pypy\pypy3.6-v7.2.0-win32\libs
customize MSVCCompiler
libraries satlas,satlas not found in C:\Program Files (x86)\Pypy\pypy3.6-v7.2.0-win32\libs
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
customize MSVCCompiler
libraries lapack_atlas not found in C:\
customize MSVCCompiler
libraries ptf77blas,ptcblas,atlas not found in C:\
customize MSVCCompiler
libraries lapack_atlas not found in C:\Program Files (x86)\Pypy\pypy3.6-v7.2.0-win32\libs
customize MSVCCompiler
libraries ptf77blas,ptcblas,atlas not found in C:\Program Files (x86)\Pypy\pypy3.6-v7.2.0-win32\libs
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
customize MSVCCompiler
libraries lapack_atlas not found in C:\
customize MSVCCompiler
libraries f77blas,cblas,atlas not found in C:\
customize MSVCCompiler
libraries lapack_atlas not found in C:\Program Files (x86)\Pypy\pypy3.6-v7.2.0-win32\libs
customize MSVCCompiler
libraries f77blas,cblas,atlas not found in C:\Program Files (x86)\Pypy\pypy3.6-v7.2.0-win32\libs
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
lapack_info:
customize MSVCCompiler
libraries lapack not found in ['C:\\', 'C:\\Program Files (x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs']
NOT AVAILABLE
C:\Users\alefe\AppData\Local\Temp\pip-install-uvuig992\numpy\numpy\distutils\system_info.py:1712: 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.
if getattr(self, '_calc_info_{}'.format(lapack))():
lapack_src_info:
NOT AVAILABLE
C:\Users\alefe\AppData\Local\Temp\pip-install-uvuig992\numpy\numpy\distutils\system_info.py:1712: 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.
if getattr(self, '_calc_info_{}'.format(lapack))():
NOT AVAILABLE
C:\Program Files (x86)\Pypy\pypy3.6-v7.2.0-win32\lib-python\3\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.win32-3.6
creating build\src.win32-3.6\numpy
creating build\src.win32-3.6\numpy\distutils
building library "npymath" sources
error: Microsoft Visual C++ 14.1 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
Command ""C:\Program Files (x86)\Pypy\pypy3.6-v7.2.0-win32\pypy3.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\alefe\\AppData\\Local\\Temp\\pip-install-uvuig992\\numpy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alefe\AppData\Local\Temp\pip-record-xm3lustt\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\alefe\AppData\Local\Temp\pip-install-uvuig992\numpy\
PS C:\WINDOWS\system32>pypy3-m ensurepip
PS C:\WINDOWS\system32>pypy3-m pip安装numpy
收集钱币
使用缓存https://files.pythonhosted.org/packages/b6/d6/be8f975f5322336f62371c9abeb936d592c98c047ad63035f1b38ae08efe/numpy-1.17.3.zip
安装收集的软件包:numpy
正在为numpy运行setup.py安装。。。错误
从命令“C:\Program Files(x86)\Pypy\pypy3.6-v7.2.0-win32\pypy3.exe”-u-C“导入setuptools,标记化;uuu file_uuUu='C:\\Users\\alefe\\AppData\\Local\\Temp\\pip-install-uvuig992\\numpy\\setup.py';f=getattr(标记化,'open,'open)(Uu文件);code=f.read().replace('\r\n','n');f.close();exec(编译,'code,'exec)'安装--记录C:\Users\alefe\AppData\Local\Temp\pip-record-xm3lust\install-record.txt--外部管理的单一版本--编译:
从numpy源目录运行。
注意:如果需要可靠的卸载行为,请安装
使用pip而不是“setup.py安装”:
-`pip install.`(来自git repo或下载的源代码
发布)
-`pip安装numpy`(PyPi上的最后一个numpy版本)
blas_opt_信息:
blas_mkl_信息:
自定义MSVCCompiler
在['C:\\','C:\\ProgramFiles(x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs'中找不到库mkl\u rt
无法使用的
blis_信息:
自定义MSVCCompiler
在['C:\\','C:\\ProgramFiles(x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs'中找不到库BLI
无法使用的
openblas_信息:
自定义MSVCCompiler
自定义MSVCCompiler
在['C:\\','C:\\ProgramFiles(x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs'中找不到库openblas
get_default_fcompiler:匹配类型:“['gnu'、'intelv'、'absoft'、'compaqv'、'intelev'、'gnu95'、'g95'、'intelvem'、'intelem'、'flang']”
定制gnuff编译器
找不到可执行文件g77
找不到可执行文件f77
自定义IntelVisualF编译器
找不到可执行ifort
找不到可执行ifl
定制绝对FTFCompiler
找不到可执行文件f90
自定义CompaqVisualCompiler
找不到可执行文件DF
自定义IntelItaniumVisualFCompiler
找不到可执行efl
定制GNU95F编译器
找不到可执行文件gfortran
找不到可执行文件f95
定制G95FCompiler
找不到可执行文件g95
自定义Intelem64VisualCompiler
自定义Intelem64TF编译器
找不到可执行文件efort
找不到可执行efc
自定义PGroupFlangCompiler
找不到可执行法兰
不知道如何在“nt”平台上编译Fortran代码
无法使用的
atlas_3_10_blas_线程信息:
设置PTATLAS=ATLAS
自定义MSVCCompiler
在['C:\\','C:\\ProgramFiles(x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs'中找不到库
无法使用的
atlas_3_10_blas_信息:
自定义MSVCCompiler
在['C:\\','C:\\ProgramFiles(x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs'中找不到库SATLA
无法使用的
atlas_blas_线程信息:
设置PTATLAS=ATLAS
自定义MSVCCompiler
在['C:\\','C:\\ProgramFiles(x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs'中找不到库ptf77blas、ptcblas、atlas
无法使用的
atlas_blas_信息:
自定义MSVCCompiler
在['C:\\','C:\\ProgramFiles(x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs'中找不到库f77blas、cblas和atlas
无法使用的
加速信息:
无法使用的
C:\Users\alefe\AppData\Local\Temp\pip-install-uvuig992\numpy\numpy\distutils\system\u info.py:690:UserWarning:
未找到优化的(供应商)Blas库。
返回性能较差的netlib Blas库。
通过切换,可以很容易地获得更好的性能
布拉斯图书馆。
self.calc_info()
blas_信息:
自定义MSVCCompiler
在['C:\\','C:\\ProgramFiles(x86)\\Pypy\\pypy3.6-v7.2.0-win32\\libs'中找不到库blas
无法使用的
C:\Users\alefe\AppData\Local\Temp\pip-install-uvuig992\numpy\numpy\distutils\system\u info.py:690:UserWarning:
布拉斯(http://www.netlib.org/blas/)找不到库。
可以在中指定要搜索库的目录
numpy/distutils/site.cfg文件(第[blas]节)或通过设置
BLAS环境变量。
self.calc_info()
blas\U src\U信息:
无法使用的
C:\Users\alefe\AppData\Local\Temp\pip-install-uvuig992\numpy\numpy\distutils\system\u info.py:690:UserWarning:
布拉斯(http://www.netlib.org/blas/)找不到来源。
可以在中指定要搜索源的目录
numpy/distutils/site.cfg文件(第[blas_src]节)或通过设置
BLAS_SRC环境变量。
self.calc_info()
无法使用的
“转换”nÆo\u201a重新确认公司内部
外部,是一个操作级别的程序。
“numpy”中不存在的路径\