Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/283.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 xlwings模块安装问题_Python_Pip_Xlwings - Fatal编程技术网

Python xlwings模块安装问题

Python xlwings模块安装问题,python,pip,xlwings,Python,Pip,Xlwings,我试过命令: python3 -m pip install xlwings 但我犯了以下(长)错误。错误太长了,所以我只把它结束。使用相同命令安装其他软件包正在工作。有人知道怎么解决这个问题吗 ... gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DPSUTIL_POSIX=1

我试过命令:

python3 -m pip install xlwings
但我犯了以下(长)错误。错误太长了,所以我只把它结束。使用相同命令安装其他软件包正在工作。有人知道怎么解决这个问题吗

...


      gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=567 -DPSUTIL_OSX=1 -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c psutil/_psutil_common.c -o build/temp.macosx-10.9-x86_64-3.7/psutil/_psutil_common.o
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=567 -DPSUTIL_OSX=1 -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c psutil/_psutil_posix.c -o build/temp.macosx-10.9-x86_64-3.7/psutil/_psutil_posix.o
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=567 -DPSUTIL_OSX=1 -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c psutil/_psutil_osx.c -o build/temp.macosx-10.9-x86_64-3.7/psutil/_psutil_osx.o
  In file included from psutil/_psutil_osx.c:36:
  In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:
  In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:72:
  /usr/local/include/Block.h:16:3: error: Never include this file directly. Use <lzma.h> instead.
  #       error Never include this file directly. Use <lzma.h> instead.
          ^
  /usr/local/include/Block.h:93:2: error: unknown type name 'lzma_check'
          lzma_check check;
          ^
 ...
          lzma_bool reserved_bool2;
          ^
  /usr/local/include/Block.h:264:2: error: unknown type name 'lzma_bool'
          lzma_bool reserved_bool3;
          ^
  fatal error: too many errors emitted, stopping now [-ferror-limit=]
  20 errors generated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for psutil
  Running setup.py clean for psutil
Failed to build psutil
Installing collected packages: psutil, xlwings
    Running setup.py install for psutil ... error
    ERROR: Command errored out with exit status 1:
     command: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cy/jtv0bpc11vsbbmfhjzz5zlz00000gr/T/pip-install-3i68cw09/psutil/setup.py'"'"'; __file__='"'"'/private/var/folders/cy/jtv0bpc11vsbbmfhjzz5zlz00000gr/T/pip-install-3i68cw09/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/cy/jtv0bpc11vsbbmfhjzz5zlz00000gr/T/pip-record-k62qhrl9/install-record.txt --single-version-externally-managed --compile
         cwd: /private/var/folders/cy/jtv0bpc11vsbbmfhjzz5zlz00000gr/T/pip-install-3i68cw09/psutil/
    Complete output (106 lines):
  ...
    creating build/temp.macosx-10.9-x86_64-3.7/psutil/arch
    creating build/temp.macosx-10.9-x86_64-3.7/psutil/arch/osx
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=567 -DPSUTIL_OSX=1 -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c psutil/_psutil_common.c -o build/temp.macosx-10.9-x86_64-3.7/psutil/_psutil_common.o
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=567 -DPSUTIL_OSX=1 -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c psutil/_psutil_posix.c -o build/temp.macosx-10.9-x86_64-3.7/psutil/_psutil_posix.o
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=567 -DPSUTIL_OSX=1 -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c psutil/_psutil_osx.c -o build/temp.macosx-10.9-x86_64-3.7/psutil/_psutil_osx.o
    In file included from psutil/_psutil_osx.c:36:
    In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:
    In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:72:
    /usr/local/include/Block.h:16:3: error: Never include this file directly. Use <lzma.h> instead.
    #       error Never include this file directly. Use <lzma.h> instead.
            ^
    /usr/local/include/Block.h:93:2: error: unknown type name 'lzma_check'
            lzma_check check;
   ...
            lzma_bool ignore_check;
            ^
    /usr/local/include/Block.h:263:2: error: unknown type name 'lzma_bool'
            lzma_bool reserved_bool2;
            ^
    /usr/local/include/Block.h:264:2: error: unknown type name 'lzma_bool'
            lzma_bool reserved_bool3;
            ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    20 errors generated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cy/jtv0bpc11vsbbmfhjzz5zlz00000gr/T/pip-install-3i68cw09/psutil/setup.py'"'"'; __file__='"'"'/private/var/folders/cy/jtv0bpc11vsbbmfhjzz5zlz00000gr/T/pip-install-3i68cw09/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/cy/jtv0bpc11vsbbmfhjzz5zlz00000gr/T/pip-record-k62qhrl9/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
。。。
gcc-Wno unused result-Wsign compare-wunrechable code-fno common-dynamic-DNDEBUG-g-fwrapv-O3-Wall-arch x86_64-g-DPSUTIL_POSIX=1-DPSUTIL_VERSION=567-DPSUTIL_OSX=1-I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m-c psutil/_psutil_-common.c-o build/temp.macosx-10.9-x86_64-3.7/psutil.7
gcc-Wno unused result-Wsign compare-wunrechable code-fno common-dynamic-DNDEBUG-g-fwrapv-O3-Wall-arch x86_64-g-DPSUTIL_POSIX=1-DPSUTIL_VERSION=567-DPSUTIL_OSX=1-I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m-c psutil/_psutil_POSIX.c-o build/temp.macosx-10.9-x86_64-3.7/psutil POSIX
gcc-Wno unused result-Wsign compare-wunrechable code-fno common-dynamic-DNDEBUG-g-fwrapv-O3-Wall-arch x86_64-g-DPSUTIL_POSIX=1-DPSUTIL_VERSION=567-DPSUTIL_OSX=1-I/Library/Frameworks/Python.framework/VERSION/3.7/include/python3.7m-c psutil/_psutil_OSX.c-o build/temp.macosx-10.9-x86_64-3.7/psutil.7
在psutil/_psutil_osx.c中包含的文件中:36:
在/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43中包含的文件中:
在/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:72中包含的文件中:
/usr/local/include/Block.h:16:3:错误:从不直接包含此文件。改用。
#错误从不直接包含此文件。改用。
^
/usr/local/include/Block.h:93:2:错误:未知类型名称“lzma\u check”
lzma_检查;
^
...
lzma_bool reserved_bool2;
^
/usr/local/include/Block.h:264:2:错误:未知类型名称“lzma\u bool”
lzma_bool保留_bool3;
^
致命错误:发出的错误太多,正在停止[-ferror limit=]
产生了20个错误。
错误:命令“gcc”失败,退出状态为1
----------------------------------------
错误:为psutil生成控制盘失败
为psutil运行setup.py clean
无法生成psutil
安装收集的软件包:psutil、xlwings
正在为psutil运行setup.py安装。。。错误
错误:命令出错,退出状态为1:
命令:/Library/Frameworks/Python.framework/Versions/3.7/bin/python3-u-c'import sys、setuptools、tokenize;sys.argv[0]=“private/var/folders/cy/jtv0bpc11vsbbmfhjzz5zlz0000gr/T/pip-install-3i68cw09/psutil/setup.py”__文件_uujz5zlz0000gr/T/pip-install-3i68cw09/psutil/setup.py'”;f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(compile(代码,“'exec'”)'安装--record/private/var/folders/cy/jtv0bpc11vsbbmfhjzz5zlz0000gr/T/pip-record-k62qhrl9/install-record.txt--外部管理的单一版本--编译
cwd:/private/var/folders/cy/jtv0bpc11vsbbmfhjzz5zlz00000gr/T/pip-install-3i68cw09/psutil/
完整输出(106行):
...
创建build/temp.macosx-10.9-x86_64-3.7/psutil/arch
创建build/temp.macosx-10.9-x86_64-3.7/psutil/arch/osx
gcc-Wno unused result-Wsign compare-wunrechable code-fno common-dynamic-DNDEBUG-g-fwrapv-O3-Wall-arch x86_64-g-DPSUTIL_POSIX=1-DPSUTIL_VERSION=567-DPSUTIL_OSX=1-I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m-c psutil/_psutil_-common.c-o build/temp.macosx-10.9-x86_64-3.7/psutil.7
gcc-Wno unused result-Wsign compare-wunrechable code-fno common-dynamic-DNDEBUG-g-fwrapv-O3-Wall-arch x86_64-g-DPSUTIL_POSIX=1-DPSUTIL_VERSION=567-DPSUTIL_OSX=1-I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m-c psutil/_psutil_POSIX.c-o build/temp.macosx-10.9-x86_64-3.7/psutil POSIX
gcc-Wno unused result-Wsign compare-wunrechable code-fno common-dynamic-DNDEBUG-g-fwrapv-O3-Wall-arch x86_64-g-DPSUTIL_POSIX=1-DPSUTIL_VERSION=567-DPSUTIL_OSX=1-I/Library/Frameworks/Python.framework/VERSION/3.7/include/python3.7m-c psutil/_psutil_OSX.c-o build/temp.macosx-10.9-x86_64-3.7/psutil.7
在psutil/_psutil_osx.c中包含的文件中:36:
在/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43中包含的文件中:
在/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:72中包含的文件中:
/usr/local/include/Block.h:16:3:错误:从不直接包含此文件。改用。
#错误从不直接包含此文件。改用。
^
/usr/local/include/Block.h:93:2:错误:未知类型名称“lzma\u check”
lzma_检查;
...
lzma_bool忽略检查;
^
/usr/local/include/Block.h:263:2:错误:未知类型名“lzma_bool”
lzma_bool reserved_bool2;
^
/usr/local/include/Block.h:264:2:错误:未知类型名称“lzma\u bool”
lzma_bool保留_bool3;
^
致命错误:发出的错误太多,正在停止[-ferror limit=]
产生了20个错误。
错误:命令“gcc”失败,退出状态为1
----------------------------------------
错误:命令出错,退出状态为1:/Library/Frameworks/Python.framework/Versions/3.7/bin/python3-u-c'import sys,setuptools,tokenize;sys.argv[0]=“private/var/folders/cy/jtv0bpc11vsbbmfhjzz5zlz0000gr/T/pip-install-3i68cw09/psutil/setup.py”__文件_uujz5zlz0000gr/T/pip-install-3i68cw09/psutil/setup.py'”;f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(compile(代码,_u文件,“'exec'”)'安装--record/private/var/folders/cy/jtv0bpc11vsbbmfh