Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/19.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 安装datadotworld时为cchardet生成控制盘失败_Python 3.x_Windows_Failed Installation - Fatal编程技术网

Python 3.x 安装datadotworld时为cchardet生成控制盘失败

Python 3.x 安装datadotworld时为cchardet生成控制盘失败,python-3.x,windows,failed-installation,Python 3.x,Windows,Failed Installation,我在安装涉及cchardet的datadotworld模块时出错。我已经安装了该软件包,但仍会出现此错误。请帮我找到解决办法。以下是完整的错误消息: Building wheels for collected packages: cchardet Building wheel for cchardet (setup.py) ... error Complete output from command c:\users\hp\appdata\local\programs\python\

我在安装涉及cchardet的datadotworld模块时出错。我已经安装了该软件包,但仍会出现此错误。请帮我找到解决办法。以下是完整的错误消息:

  Building wheels for collected packages: cchardet
  Building wheel for cchardet (setup.py) ... error
  Complete output from command c:\users\hp\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-twscuztm\\cchardet\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\hp\AppData\Local\Temp\pip-wheel-xemo8o53 --python-tag cp37:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win32-3.7
  creating build\lib.win32-3.7\cchardet
  copying src\cchardet\version.py -> build\lib.win32-3.7\cchardet
  copying src\cchardet\__init__.py -> build\lib.win32-3.7\cchardet
  running build_ext
  building 'cchardet._cchardet' extension
  creating build\temp.win32-3.7
  creating build\temp.win32-3.7\Release
  creating build\temp.win32-3.7\Release\src
  creating build\temp.win32-3.7\Release\src\cchardet
  creating build\temp.win32-3.7\Release\src\ext
  creating build\temp.win32-3.7\Release\src\ext\libcharsetdetect
  creating build\temp.win32-3.7\Release\src\ext\libcharsetdetect\mozilla
  creating build\temp.win32-3.7\Release\src\ext\libcharsetdetect\mozilla\extensions
  creating build\temp.win32-3.7\Release\src\ext\libcharsetdetect\mozilla\extensions\universalchardet
  creating build\temp.win32-3.7\Release\src\ext\libcharsetdetect\mozilla\extensions\universalchardet\src
  creating build\temp.win32-3.7\Release\src\ext\libcharsetdetect\mozilla\extensions\universalchardet\src\base
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 -Isrc\ext\libcharsetdetect/mozilla/extensions/universalchardet/src/base/ -Isrc\ext\libcharsetdetect/nspr-emu/ -Isrc\ext\libcharsetdetect/ -Ic:\users\hp\appdata\local\programs\python\python37-32\include -Ic:\users\hp\appdata\local\programs\python\python37-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /EHsc /Tpsrc\cchardet\_cchardet.cpp /Fobuild\temp.win32-3.7\Release\src\cchardet\_cchardet.obj
  _cchardet.cpp
  src\ext\libcharsetdetect/charsetdetect.h(5): warning C4068: unknown pragma
  src\ext\libcharsetdetect/charsetdetect.h(31): warning C4068: unknown pragma
  src\cchardet\_cchardet.cpp(2351): error C2197: 'PyObject *(__cdecl *)(PyObject *,PyObject *const *,Py_ssize_t)': too many arguments for call
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

  ----------------------------------------
  Failed building wheel for cchardet
  Running setup.py clean for cchardet
Failed to build cchardet
Installing collected packages: pyflakes, pycodestyle, flake8, cchardet, tabulator, jsontableschema, datapackage, configparser, datadotworld
  Found existing installation: cchardet 2.1.4
    Uninstalling cchardet-2.1.4:
      Successfully uninstalled cchardet-2.1.4
  Running setup.py install for cchardet ... error
    Complete output from command c:\users\hp\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-twscuztm\\cchardet\\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\hp\AppData\Local\Temp\pip-record-52dns6_y\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-3.7
    creating build\lib.win32-3.7\cchardet
    copying src\cchardet\version.py -> build\lib.win32-3.7\cchardet
    copying src\cchardet\__init__.py -> build\lib.win32-3.7\cchardet
    running build_ext
    building 'cchardet._cchardet' extension
    creating build\temp.win32-3.7
    creating build\temp.win32-3.7\Release
    creating build\temp.win32-3.7\Release\src
    creating build\temp.win32-3.7\Release\src\cchardet
    creating build\temp.win32-3.7\Release\src\ext
    creating build\temp.win32-3.7\Release\src\ext\libcharsetdetect
    creating build\temp.win32-3.7\Release\src\ext\libcharsetdetect\mozilla
    creating build\temp.win32-3.7\Release\src\ext\libcharsetdetect\mozilla\extensions
    creating build\temp.win32-3.7\Release\src\ext\libcharsetdetect\mozilla\extensions\universalchardet
    creating build\temp.win32-3.7\Release\src\ext\libcharsetdetect\mozilla\extensions\universalchardet\src
    creating build\temp.win32-3.7\Release\src\ext\libcharsetdetect\mozilla\extensions\universalchardet\src\base
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 -Isrc\ext\libcharsetdetect/mozilla/extensions/universalchardet/src/base/ -Isrc\ext\libcharsetdetect/nspr-emu/ -Isrc\ext\libcharsetdetect/ -Ic:\users\hp\appdata\local\programs\python\python37-32\include -Ic:\users\hp\appdata\local\programs\python\python37-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /EHsc /Tpsrc\cchardet\_cchardet.cpp /Fobuild\temp.win32-3.7\Release\src\cchardet\_cchardet.obj
    _cchardet.cpp
    src\ext\libcharsetdetect/charsetdetect.h(5): warning C4068: unknown pragma
    src\ext\libcharsetdetect/charsetdetect.h(31): warning C4068: unknown pragma
    src\cchardet\_cchardet.cpp(2351): error C2197: 'PyObject *(__cdecl *)(PyObject *,PyObject *const *,Py_ssize_t)': too many arguments for call
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

    ----------------------------------------
  Rolling back uninstall of cchardet
  Moving to c:\users\hp\appdata\local\programs\python\python37-32\lib\site-packages\cchardet-2.1.4.dist-info\
   from c:\users\hp\appdata\local\programs\python\python37-32\lib\site-packages\~chardet-2.1.4.dist-info
  Moving to c:\users\hp\appdata\local\programs\python\python37-32\lib\site-packages\cchardet\
   from c:\users\hp\appdata\local\programs\python\python37-32\lib\site-packages\~chardet
  Moving to c:\users\hp\appdata\local\programs\python\python37-32\scripts\cchardetect
   from C:\Users\hp\AppData\Local\Temp\pip-uninstall-hbm61cf2\cchardetect
Command "c:\users\hp\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-twscuztm\\cchardet\\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\hp\AppData\Local\Temp\pip-record-52dns6_y\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\hp\AppData\Local\Temp\pip-install-twscuztm\cchardet\

我花了一个小时左右的时间来纠结这个错误,所以我不得不回来帮你解决。对我有效的方法是在GitHub上访问文件,并检查我没有安装的依赖项。原来我唯一没有安装的是Cython。我运行了pip安装cython,然后pip安装datadotworld[pandas]终于成功了


希望这有帮助

这对我有用,谢谢。。。在过去的3小时里,我一直坚持这一点,这就是解决问题的方法。请考虑对提交的问题作出回应,如果它解决了你的问题。标记所回答的问题。