在 Windows 10 中安装 pypy 模块的问题

如何解决在 Windows 10 中安装 pypy 模块的问题

我正在尝试将 pandas、matplotlib 和其他模块安装到 pypy3。但是我不断收到错误消息,有没有办法解决这个问题。我在 Windows 10 64 位机器上。我已经在 cmd 上执行了 ensurepip 命令并且它有效。当我将模块下载到 python 时,它很好,但是在 pypy 中下载模块是问题所在。下面是错误命令:

cmd 错误信息:


C:\Users\maste>pypy3 -m  pip list
Package          Version
---------------- -------
cffi             1.14.3
greenlet         0.4.13
ipython-genutils 0.2.0
parso            0.8.1
pip              20.3.3
py               1.10.0
readline         6.2.4.1
setuptools       47.1.0
six              1.15.0
tornado          6.1
traitlets        5.0.5
wcwidth          0.2.5

C:\Users\maste>pypy3 -m  pip install pandas
Collecting pandas
  Using cached pandas-1.2.0.tar.gz (5.4 MB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\maste\AppData\Local\Programs\Python\Pypy\pypy3.7-v7.3.3-win32\pypy3.exe' 'C:\Users\maste\AppData\Local\Programs\Python\Pypy\pypy3.7-v7.3.3-win32\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\maste\AppData\Local\Temp\pip-build-env-3f0g_ug8\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.29.21,<3' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy; python_version>='"'"'3.9'"'"''
       cwd: None
  Complete output (269 lines):
  Ignoring numpy: markers 'python_version == "3.8" and platform_system != "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.7" and platform_system == "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.8" and platform_system == "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version >= "3.9"' don't match your environment
  Collecting numpy==1.16.5
    Using cached numpy-1.16.5.zip (5.1 MB)
  Collecting Cython<3,>=0.29.21
    Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)
  Collecting wheel
    Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB)
  Collecting setuptools
    Using cached setuptools-51.1.1-py3-none-any.whl (2.0 MB)
  Using legacy 'setup.py install' for numpy,since package 'wheel' is not installed.
  Installing collected packages: wheel,setuptools,numpy,Cython
      Running setup.py install for numpy: started
      Running setup.py install for numpy: finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: 'C:\Users\maste\AppData\Local\Programs\Python\Pypy\pypy3.7-v7.3.3-win32\pypy3.exe' -u -c 'import sys,tokenize; sys.argv[0] = '"'"'C:\\Users\\maste\\AppData\\Local\\Temp\\pip-install-y52q2imo\\numpy_e5aebe17c4a84890b15f58b35ad13db9\\setup.py'"'"'; __file__='"'"'C:\\Users\\maste\\AppData\\Local\\Temp\\pip-install-y52q2imo\\numpy_e5aebe17c4a84890b15f58b35ad13db9\\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\maste\AppData\Local\Temp\pip-record-kiureofp\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\maste\AppData\Local\Temp\pip-build-env-3f0g_ug8\overlay' --compile --install-headers 'C:\Users\maste\AppData\Local\Temp\pip-build-env-3f0g_ug8\overlay\include\numpy'
           cwd: C:\Users\maste\AppData\Local\Temp\pip-install-y52q2imo\numpy_e5aebe17c4a84890b15f58b35ad13db9\
      Complete output (247 lines):
      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:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries mkl_rt not found in ['C:\\','C:\\Users\\maste\\AppData\\Local\\Programs\\Python\\Pypy\\pypy3.7-v7.3.3-win32\\libs']
        NOT AVAILABLE

      blis_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries blis not found in ['C:\\','C:\\Users\\maste\\AppData\\Local\\Programs\\Python\\Pypy\\pypy3.7-v7.3.3-win32\\libs']
        NOT AVAILABLE

      openblas_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries openblas not found in ['C:\\','C:\\Users\\maste\\AppData\\Local\\Programs\\Python\\Pypy\\pypy3.7-v7.3.3-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
      Found executable C:\cygwin64\bin\DF.exe
      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
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries tatlas not found in ['C:\\','C:\\Users\\maste\\AppData\\Local\\Programs\\Python\\Pypy\\pypy3.7-v7.3.3-win32\\libs']
        NOT AVAILABLE

      atlas_3_10_blas_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries satlas not found in ['C:\\','C:\\Users\\maste\\AppData\\Local\\Programs\\Python\\Pypy\\pypy3.7-v7.3.3-win32\\libs']
        NOT AVAILABLE

      atlas_blas_threads_info:
      Setting PTATLAS=ATLAS
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries ptf77blas,ptcblas,atlas not found in ['C:\\','C:\\Users\\maste\\AppData\\Local\\Programs\\Python\\Pypy\\pypy3.7-v7.3.3-win32\\libs']
        NOT AVAILABLE

      atlas_blas_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries f77blas,cblas,'C:\\Users\\maste\\AppData\\Local\\Programs\\Python\\Pypy\\pypy3.7-v7.3.3-win32\\libs']
        NOT AVAILABLE

      accelerate_info:
        NOT AVAILABLE

      C:\Users\maste\AppData\Local\Temp\pip-install-y52q2imo\numpy_e5aebe17c4a84890b15f58b35ad13db9\numpy\distutils\system_info.py:639: 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.
        self.calc_info()
      blas_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries blas not found in ['C:\\','C:\\Users\\maste\\AppData\\Local\\Programs\\Python\\Pypy\\pypy3.7-v7.3.3-win32\\libs']
        NOT AVAILABLE

      C:\Users\maste\AppData\Local\Temp\pip-install-y52q2imo\numpy_e5aebe17c4a84890b15f58b35ad13db9\numpy\distutils\system_info.py:639: 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\maste\AppData\Local\Temp\pip-install-y52q2imo\numpy_e5aebe17c4a84890b15f58b35ad13db9\numpy\distutils\system_info.py:639: 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' is not recognized as an internal or external command,operable program or batch file.
      non-existing path in 'numpy\\distutils': 'site.cfg'
      lapack_opt_info:
      lapack_mkl_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries mkl_rt not found in ['C:\\','C:\\Users\\maste\\AppData\\Local\\Programs\\Python\\Pypy\\pypy3.7-v7.3.3-win32\\libs']
        NOT AVAILABLE

      openblas_lapack_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries openblas not found in ['C:\\','C:\\Users\\maste\\AppData\\Local\\Programs\\Python\\Pypy\\pypy3.7-v7.3.3-win32\\libs']
        NOT AVAILABLE

      openblas_clapack_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries openblas,lapack not found in ['C:\\','C:\\Users\\maste\\AppData\\Local\\Programs\\Python\\Pypy\\pypy3.7-v7.3.3-win32\\libs']
        NOT AVAILABLE

      atlas_3_10_threads_info:
      Setting PTATLAS=ATLAS
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in C:\
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries tatlas,tatlas not found in C:\
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in C:\Users\maste\AppData\Local\Programs\Python\Pypy\pypy3.7-v7.3.3-win32\libs
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries tatlas,tatlas not found in C:\Users\maste\AppData\Local\Programs\Python\Pypy\pypy3.7-v7.3.3-win32\libs
      <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
        NOT AVAILABLE

      atlas_3_10_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in C:\
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries satlas,satlas not found in C:\
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in C:\Users\maste\AppData\Local\Programs\Python\Pypy\pypy3.7-v7.3.3-win32\libs
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries satlas,satlas not found in C:\Users\maste\AppData\Local\Programs\Python\Pypy\pypy3.7-v7.3.3-win32\libs
      <class 'numpy.distutils.system_info.atlas_3_10_info'>
        NOT AVAILABLE

      atlas_threads_info:
      Setting PTATLAS=ATLAS
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in C:\
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries ptf77blas,atlas not found in C:\
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in C:\Users\maste\AppData\Local\Programs\Python\Pypy\pypy3.7-v7.3.3-win32\libs
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries ptf77blas,atlas not found in C:\Users\maste\AppData\Local\Programs\Python\Pypy\pypy3.7-v7.3.3-win32\libs
      <class 'numpy.distutils.system_info.atlas_threads_info'>
        NOT AVAILABLE

      atlas_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in C:\
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries f77blas,atlas not found in C:\
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in C:\Users\maste\AppData\Local\Programs\Python\Pypy\pypy3.7-v7.3.3-win32\libs
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries f77blas,atlas not found in C:\Users\maste\AppData\Local\Programs\Python\Pypy\pypy3.7-v7.3.3-win32\libs
      <class 'numpy.distutils.system_info.atlas_info'>
        NOT AVAILABLE

      lapack_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries lapack not found in ['C:\\','C:\\Users\\maste\\AppData\\Local\\Programs\\Python\\Pypy\\pypy3.7-v7.3.3-win32\\libs']
        NOT AVAILABLE

      C:\Users\maste\AppData\Local\Temp\pip-install-y52q2imo\numpy_e5aebe17c4a84890b15f58b35ad13db9\numpy\distutils\system_info.py:639: 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.
        self.calc_info()
      lapack_src_info:
        NOT AVAILABLE

      C:\Users\maste\AppData\Local\Temp\pip-install-y52q2imo\numpy_e5aebe17c4a84890b15f58b35ad13db9\numpy\distutils\system_info.py:639: 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.
        self.calc_info()
        NOT AVAILABLE

      C:\Users\maste\AppData\Local\Programs\Python\Pypy\pypy3.7-v7.3.3-win32\lib-python\3\distutils\dist.py:274: 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,build commands --fcompiler options
      running build_src
      build_src
      building py_modules sources
      creating build
      creating build\src.win32-3.7
      creating build\src.win32-3.7\numpy
      creating build\src.win32-3.7\numpy\distutils
      building library "npymath" sources
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
      ----------------------------------------
  ERROR: Command errored out with exit status 1: 'C:\Users\maste\AppData\Local\Programs\Python\Pypy\pypy3.7-v7.3.3-win32\pypy3.exe' -u -c 'import sys,'"'"'exec'"'"'))' install --record 'C:\Users\maste\AppData\Local\Temp\pip-record-kiureofp\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\maste\AppData\Local\Temp\pip-build-env-3f0g_ug8\overlay' --compile --install-headers 'C:\Users\maste\AppData\Local\Temp\pip-build-env-3f0g_ug8\overlay\include\numpy' Check the logs for full command output.
  ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\maste\AppData\Local\Programs\Python\Pypy\pypy3.7-v7.3.3-win32\pypy3.exe' 'C:\Users\maste\AppData\Local\Programs\Python\Pypy\pypy3.7-v7.3.3-win32\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\maste\AppData\Local\Temp\pip-build-env-3f0g_ug8\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.29.21,<3' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy; python_version>='"'"'3.9'"'"'' Check the logs for full command output.

解决方法

PyPy 的 Python 包兼容性页面当前显示了 Pandas(和 matplotlib)的问题。这个问题似乎不仅仅针对您。

PyPy's Python packages compatibility

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


依赖报错 idea导入项目后依赖报错,解决方案:https://blog.csdn.net/weixin_42420249/article/details/81191861 依赖版本报错:更换其他版本 无法下载依赖可参考:https://blog.csdn.net/weixin_42628809/a
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下 2021-12-03 13:33:33.927 ERROR 7228 [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPL
错误1:gradle项目控制台输出为乱码 # 解决方案:https://blog.csdn.net/weixin_43501566/article/details/112482302 # 在gradle-wrapper.properties 添加以下内容 org.gradle.jvmargs=-Df
错误还原:在查询的过程中,传入的workType为0时,该条件不起作用 &lt;select id=&quot;xxx&quot;&gt; SELECT di.id, di.name, di.work_type, di.updated... &lt;where&gt; &lt;if test=&qu
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveC
解决方案1 1、改项目中.idea/workspace.xml配置文件,增加dynamic.classpath参数 2、搜索PropertiesComponent,添加如下 &lt;property name=&quot;dynamic.classpath&quot; value=&quot;tru
删除根组件app.vue中的默认代码后报错:Module Error (from ./node_modules/eslint-loader/index.js): 解决方案:关闭ESlint代码检测,在项目根目录创建vue.config.js,在文件中添加 module.exports = { lin
查看spark默认的python版本 [root@master day27]# pyspark /home/software/spark-2.3.4-bin-hadoop2.7/conf/spark-env.sh: line 2: /usr/local/hadoop/bin/hadoop: No s
使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -&gt; systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping(&quot;/hires&quot;) public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate&lt;String
使用vite构建项目报错 C:\Users\ychen\work&gt;npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-