Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 如何在Mac OS X Big Sur上安装用于Python 3.9的pandas模块?_Python 3.x_Pandas_Macos_Pip_Macos Big Sur - Fatal编程技术网

Python 3.x 如何在Mac OS X Big Sur上安装用于Python 3.9的pandas模块?

Python 3.x 如何在Mac OS X Big Sur上安装用于Python 3.9的pandas模块?,python-3.x,pandas,macos,pip,macos-big-sur,Python 3.x,Pandas,Macos,Pip,Macos Big Sur,我在MacOSX(大苏尔)上使用Python3.9。我想安装熊猫。我正在使用pip,但它失败了 安装熊猫 导致此错误消息 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: /Users/davea/Documents/w

我在MacOSX(大苏尔)上使用Python3.9。我想安装熊猫。我正在使用pip,但它失败了

安装熊猫

导致此错误消息

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: /Users/davea/Documents/workspace/chicommons/maps/web/venv/bin/python3 /Users/davea/Documents/workspace/chicommons/maps/web/venv/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/hm/_tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-build-env-r7sphyv3/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 (2009 lines):
  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.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
  Collecting setuptools
    Using cached setuptools-51.1.0-py3-none-any.whl (2.0 MB)
  Collecting wheel
    Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB)
  Collecting Cython<3,>=0.29.21
    Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)
  Collecting numpy
    Using cached numpy-1.19.4.zip (7.3 MB)
...
    build/bdist.macosx-10.9-universal2/wheel/numpy/random/mtrand.cpython-39-darwin.so
    build/bdist.macosx-10.9-universal2/wheel/numpy/random/_generator.cpython-39-darwin.so
    build/bdist.macosx-10.9-universal2/wheel/numpy/random/_pcg64.cpython-39-darwin.so
    build/bdist.macosx-10.9-universal2/wheel/numpy/random/_sfc64.cpython-39-darwin.so
    build/bdist.macosx-10.9-universal2/wheel/numpy/random/_mt19937.cpython-39-darwin.so
    build/bdist.macosx-10.9-universal2/wheel/numpy/random/_philox.cpython-39-darwin.so
    build/bdist.macosx-10.9-universal2/wheel/numpy/random/_bounded_integers.cpython-39-darwin.so
    build/bdist.macosx-10.9-universal2/wheel/numpy/random/_common.cpython-39-darwin.soTraceback (most recent call last):
      File "/Users/davea/Documents/workspace/chicommons/maps/web/venv/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
        main()
      File "/Users/davea/Documents/workspace/chicommons/maps/web/venv/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "/Users/davea/Documents/workspace/chicommons/maps/web/venv/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 204, in build_wheel
        return _build_backend().build_wheel(wheel_directory, config_settings,
      File "/private/var/folders/hm/_tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-build-env-w99svf08/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 211, in build_wheel
        return self._build_with_temp_dir(['bdist_wheel'], '.whl',
      File "/private/var/folders/hm/_tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-build-env-w99svf08/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 197, in _build_with_temp_dir
        self.run_setup()
      File "/private/var/folders/hm/_tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-build-env-w99svf08/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 248, in run_setup
        super(_BuildMetaLegacyBackend,
      File "/private/var/folders/hm/_tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-build-env-w99svf08/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 142, in run_setup
        exec(compile(code, __file__, 'exec'), locals())
      File "setup.py", line 508, in <module>
        setup_package()
      File "setup.py", line 500, in setup_package
        setup(**metadata)
      File "/private/var/folders/hm/_tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-install-bom5tv_9/numpy/numpy/distutils/core.py", line 169, in setup
        return old_setup(**new_attr)
      File "/private/var/folders/hm/_tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-build-env-w99svf08/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 165, in setup
        return distutils.core.setup(**attrs)
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/private/var/folders/hm/_tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-build-env-w99svf08/overlay/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 328, in run
        impl_tag, abi_tag, plat_tag = self.get_tag()
      File "/private/var/folders/hm/_tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-build-env-w99svf08/overlay/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 278, in get_tag
        assert tag in supported_tags, "would build wheel with unsupported tag {}".format(tag)
    AssertionError: would build wheel with unsupported tag ('cp39', 'cp39', 'macosx_11_0_universal2')
    ----------------------------------------
    ERROR: Failed building wheel for numpy
  Failed to build numpy
  ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly
  WARNING: You are using pip version 20.2.3; however, version 20.3.3 is available.
  You should consider upgrading via the '/Users/davea/Documents/workspace/chicommons/maps/web/venv/bin/python3 -m pip install --upgrade pip' command.
  ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/davea/Documents/workspace/chicommons/maps/web/venv/bin/python3 /Users/davea/Documents/workspace/chicommons/maps/web/venv/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/hm/_tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-build-env-r7sphyv3/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.
收集熊猫 使用缓存的pandas-1.2.0.tar.gz(5.4 MB) 正在安装生成依赖项。。。错误 错误:命令出错,退出状态为1: 命令:/Users/davea/Documents/workspace/chicommons/maps/web/venv/bin/python3/Users/davea/Documents/workspace/chicommons/maps/web/venv/lib/python3.9/site-packages/pip安装--忽略已安装--无用户--前缀/private/var/folders/hm/_tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-build-env-r7sphyv3/overlay--无警告脚本位置--无二进制:无:--仅二进制:无:-ihttps://pypi.org/simple --setuptools控制盘“Cython>=0.29.21,=”“'3.9'” cwd:没有 完成输出(2009行): 忽略numpy:markers'python_version==“3.7”和platform_system!=“AIX”与您的环境不匹配 忽略numpy:markers'python_version==“3.8”和platform_system!=“AIX”与您的环境不匹配 忽略numpy:标记“python\u version==”3.7“和platform\u system==”AIX“与您的环境不匹配 忽略numpy:标记“python\u version==”3.8“和平台\u system==”AIX“与您的环境不匹配 收集设置工具 使用缓存的setuptools-51.1.0-py3-none-any.whl(2.0 MB) 集电轮 使用缓存的wheel-0.36.2-py2.py3-none-any.whl(35 kB) 收集Cython=0.29.21 使用缓存的Cython-0.29.21-py2.py3-none-any.whl(974 kB) 收集钱币 使用缓存的numpy-1.19.4.zip(7.3MB) ... build/bdist.macosx-10.9-universal2/wheel/numpy/random/mtrand.cpython-39-darwin.so build/bdist.macosx-10.9-universal2/wheel/numpy/random//u generator.cpython-39-darwin.so build/bdist.macosx-10.9-universal2/wheel/numpy/random//u pcg64.cpython-39-darwin.so build/bdist.macosx-10.9-universal2/wheel/numpy/random//u sfc64.cpython-39-darwin.so build/bdist.macosx-10.9-universal2/wheel/numpy/random//u mt19937.cpython-39-darwin.so build/bdist.macosx-10.9-universal2/wheel/numpy/random//u philox.cpython-39-darwin.so build/bdist.macosx-10.9-universal2/wheel/numpy/random//\u bounded\u integers.cpython-39-darwin.so build/bdist.macosx-10.9-universal2/wheel/numpy/random//u common.cpython-39-darwin.soTraceback(最近一次调用最后一次): 文件“/Users/davea/Documents/workspace/chicommons/maps/web/venv/lib/python3.9/site packages/pip/_vendor/pep517/_in_process.py”,第280行 main() 文件“/Users/davea/Documents/workspace/chicommons/maps/web/venv/lib/python3.9/site packages/pip/_vendor/pep517/_in_process.py”,主文件第263行 json_out['return_val']=hook(**hook_输入['kwargs']) 文件“/Users/davea/Documents/workspace/chicommons/maps/web/venv/lib/python3.9/site packages/pip/_vendor/pep517/_in_process.py”,第204行,内置车轮 返回\u build\u backend(), 文件“/private/var/folders/hm/”tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-build-env-w99svf08/overlay/lib/python3.9/site packages/setuptools/build\u meta.py”,第211行,在build\u中 返回self._build_与_temp_dir(['bdist_wheel'],'.whl', 文件“/private/var/folders/hm/”tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-build-env-w99svf08/overlay/lib/python3.9/site packages/setuptools/build\u meta.py”,第197行,包含临时目录 self.run_setup() 文件“/private/var/folders/hm/”tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-build-env-w99svf08/overlay/lib/python3.9/site packages/setuptools/build\u meta.py”,运行设置中第248行 超级(_BuildMetaLegacyBackend, 文件“/private/var/folders/hm/”tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-build-env-w99svf08/overlay/lib/python3.9/site packages/setuptools/build\u meta.py”,运行设置中第142行 exec(编译(代码、文件、exec)、局部变量() 文件“setup.py”,第508行,在 安装程序包() 文件“setup.py”,第500行,在setup\u包中 设置(**元数据) 文件“/private/var/folders/hm/”tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-install-bom5tv_9/numpy/numpy/distutils/core.py”,第169行,在安装程序中 返回旧的\u设置(**新的\u属性) 文件“/private/var/folders/hm/”tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-build-env-w99svf08/overlay/lib/python3.9/site packages/setuptools/_uinit_uuuuuuuuuu.py”,设置中第165行 返回distutils.core.setup(**attrs) 文件“/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py”,第148行,在安装程序中 dist.run_命令() 文件“/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py”,第966行,在run_命令中 self.run_命令(cmd) 文件“/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py”,第985行,在run_命令中 cmd_obj.run() 文件“/private/var/folders/hm/tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-build-env-w99svf08/overlay/lib/python3.9/site packages/wheel/bdist_wheel.py”,第328行,运行中 impl_标签,abi_标签,plat_标签=self.get_标签() 文件“/private/var/folders/hm/”tf9xpw10mb0tffdv32g8lrh0000gn/T/pip-build-env-w99svf08/overlay/lib/python3.9/site packages/wheel/bdist_wheel.py”,第278行,在get_标记中 在受支持的_标记中断言标记,“将使用不受支持的标记{}构建轮子”。格式(标记) AssertionError:将使用不受支持的标记('cp39','cp39','macosx_11_0_universal2')构建控制盘 ---------------------------------------- 错误:为numpy生成控制盘失败 无法生成numpy 错误:无法为使用PEP 517且无法直接安装的numpy生成控制盘 警告:您正在使用pip版本20.2.3;但是,版本20.3.3可用。 您应该考虑通过“/用户/ Davea/文档/工作区/ CHICOMMON/MAPs/Web/VeV/BI/PythON3-M PIP安装-升级PIP”命令进行升级。 ---------------------------------------- 错误:命令出错
. venv/bin/activate
venv/bin/python -m pip install --upgrade pip