如何在运行Windows 64位的64位计算机上的pypy上安装numpy? [英] how can I install numpy on pypy on my 64 bit computer running Windows 64 bit?

查看:520
本文介绍了如何在运行Windows 64位的64位计算机上的pypy上安装numpy?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

硬件/软件: 运行64位Windows的计算机64 AMD处理器

我有一个计算量大的程序,希望通过使用Pypy来加快速度.我已经安装了pypy,还安装了Microsoft Visual Studio和Microsoft Visual C ++ Build Tools.

我的python程序使用Numpy,所以我尝试使用以下命令在pypy上安装numpy

pypy3 - m pip install numpy

我收到的错误消息是:

错误:需要Microsoft Visual C ++ 14.1.使用"Microsoft Visual C ++生成工具"获得它: http://landinghub.visualstudio.com /visual-cpp-build-tools

但是我已经安装了Microsoft Visual C ++ Build Tools吗?我重新安装了几次,但是得到了相同的结果.

如何为pypy3成功安装numpy?

使用的命令:

pypy3 - m pip install numpy

我希望将numpy安装在PYPY上,但得到的结果是:

  c:\pypy\pypy3.6-v7.0.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": http://landinghub.visualstudio.com/visual-cpp-build-tools

解决方案

您可能需要运行pypy3 -mpip install --upgrade setuptools以获得可以找到您的构建工具的setuptools版本.您还可以通过在开发者命令提示符下运行pypy3来使pypy3使用您的构建工具版本,请确保选择32位版本的开发者工具(Windows上的pypy在64位版本中不可用)

hardware/software: Machine 64 AMD processor running 64 bit windows

I have a computationally heavy program that I wish to speed up by using Pypy. I have installed pypy and also installed Microsoft Visual Studio and Microsoft Visual C++ Build Tools.

My python program uses Numpy so I tried to install numpy on pypy using the following

pypy3 - m pip install numpy

The error message I get says:

error: Microsoft Visual C++ 14.1 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

However I have already installed Microsoft Visual C++ Build Tools? I reinstalled it several times but got the same results.

How can I successfully install numpy for pypy3?

command used :

pypy3 - m pip install numpy

I expect numpy to be installed on PYPY but the results I get are:

  c:\pypy\pypy3.6-v7.0.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": http://landinghub.visualstudio.com/visual-cpp-build-tools

解决方案

You might need to run pypy3 -mpip install --upgrade setuptools to get a version of setuptools that can find your build tools. You can also pypy3 to use your version of the build tools by running pypy3 from a developer command prompt, be sure to choose the 32-bit version of the developer tools (pypy on windows is not available in a 64-bit version)

这篇关于如何在运行Windows 64位的64位计算机上的pypy上安装numpy?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆