当我尝试升级 chatterbot 时,它不起作用。它说得到 c++ 14.0 或更高版本,我有!我必须升级它,因为它在代码中的某个地方使用了 time.clock(),但它不再起作用,所以我收到一个错误。但是,当我执行 pip install chatterbot --upgrade 时,我收到此错误消息:
ERROR: Command errored out with exit status 1:
command: 'c:\users\itsuw\appdata\local\programs\python\python39\python.exe' 'c:\users\itsuw\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\itsuw\AppData\Local\Temp\pip-build-env-10ire469\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'wheel>0.32.0,<0.33.0' Cython 'cymem>=2.0.2,<2.1.0' 'preshed>=2.0.1,<2.1.0' 'murmurhash>=0.28.0,<1.1.0' 'thinc>=7.0.8,<7.1.0'
cwd: None
Complete output (60 lines):
Collecting cymem<2.1.0,>=2.0.2
Using cached cymem-2.0.5-cp39-cp39-win_amd64.whl (36 kB)
Collecting murmurhash<1.1.0,>=0.28.0
Using cached murmurhash-1.0.5-cp39-cp39-win_amd64.whl (21 kB)
Collecting preshed<2.1.0,>=2.0.1
Using cached preshed-2.0.1.tar.gz (113 kB)
Collecting thinc<7.1.0,>=7.0.8
Using cached thinc-7.0.8.tar.gz (1.9 MB)
Collecting wheel<0.33.0,>0.32.0
Using cached wheel-0.32.3-py2.py3-none-any.whl (21 kB)
Collecting blis<0.3.0,>=0.2.1
Using cached blis-0.2.4.tar.gz (1.5 MB)
Collecting numpy>=1.7.0
Using cached numpy-1.19.5-cp39-cp39-win_amd64.whl (13.3 MB)
Collecting plac<1.0.0,>=0.9.6
Using cached plac-0.9.6-py2.py3-none-any.whl (20 kB)
Collecting srsly<1.1.0,>=0.0.6
Using cached srsly-1.0.5-cp39-cp39-win_amd64.whl (177 kB)
Collecting tqdm<5.0.0,>=4.10.0
Using cached tqdm-4.55.2-py2.py3-none-any.whl (68 kB)
Collecting wasabi<1.1.0,>=0.0.9
Using cached wasabi-0.8.0-py3-none-any.whl (23 kB)
Collecting Cython
Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)
Collecting setuptools
Using cached setuptools-51.1.2-py3-none-any.whl (784 kB)
Using legacy 'setup.py install' for preshed, since package 'wheel' is not installed.
Using legacy 'setup.py install' for thinc, since package 'wheel' is not installed.
Using legacy 'setup.py install' for blis, since package 'wheel' is not installed.
Installing collected packages: numpy, cymem, wasabi, tqdm, srsly, preshed, plac, murmurhash, blis, wheel, thinc, setuptools, Cython
Running setup.py install for preshed: started
Running setup.py install for preshed: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'c:\users\itsuw\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\itsuw\\AppData\\Local\\Temp\\pip-install-8ufj6imi\\preshed_3866268e3dd24ad39617498b96541d5e\\setup.py'"'"'; __file__='"'"'C:\\Users\\itsuw\\AppData\\Local\\Temp\\pip-install-8ufj6imi\\preshed_3866268e3dd24ad39617498b96541d5e\\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\itsuw\AppData\Local\Temp\pip-record-ud66pf2p\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\itsuw\AppData\Local\Temp\pip-build-env-10ire469\overlay' --compile --install-headers 'C:\Users\itsuw\AppData\Local\Temp\pip-build-env-10ire469\overlay\Include\preshed'
cwd: C:\Users\itsuw\AppData\Local\Temp\pip-install-8ufj6imi\preshed_3866268e3dd24ad39617498b96541d5e\
Complete output (22 lines):
WARNING: The wheel package is not available.
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\preshed
copying preshed\about.py -> build\lib.win-amd64-3.9\preshed
copying preshed\__init__.py -> build\lib.win-amd64-3.9\preshed
creating build\lib.win-amd64-3.9\preshed\tests
copying preshed\tests\test_counter.py -> build\lib.win-amd64-3.9\preshed\tests
copying preshed\tests\test_hashing.py -> build\lib.win-amd64-3.9\preshed\tests
copying preshed\tests\test_pop.py -> build\lib.win-amd64-3.9\preshed\tests
copying preshed\tests\__init__.py -> build\lib.win-amd64-3.9\preshed\tests
copying preshed\counter.pyx -> build\lib.win-amd64-3.9\preshed
copying preshed\maps.pyx -> build\lib.win-amd64-3.9\preshed
copying preshed\counter.pxd -> build\lib.win-amd64-3.9\preshed
copying preshed\maps.pxd -> build\lib.win-amd64-3.9\preshed
copying preshed\__init__.pxd -> build\lib.win-amd64-3.9\preshed
running build_ext
building 'preshed.maps' extension
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\itsuw\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\itsuw\\AppData\\Local\\Temp\\pip-install-8ufj6imi\\preshed_3866268e3dd24ad39617498b96541d5e\\setup.py'"'"'; __file__='"'"'C:\\Users\\itsuw\\AppData\\Local\\Temp\\pip-install-8ufj6imi\\preshed_3866268e3dd24ad39617498b96541d5e\\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\itsuw\AppData\Local\Temp\pip-record-ud66pf2p\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\itsuw\AppData\Local\Temp\pip-build-env-10ire469\overlay' --compile --install-headers 'C:\Users\itsuw\AppData\Local\Temp\pip-build-env-10ire469\overlay\Include\preshed' Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\itsuw\appdata\local\programs\python\python39\python.exe' 'c:\users\itsuw\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\itsuw\AppData\Local\Temp\pip-build-env-10ire469\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'wheel>0.32.0,<0.33.0' Cython 'cymem>=2.0.2,<2.1.0' 'preshed>=2.0.1,<2.1.0' 'murmurhash>=0.28.0,<1.1.0' 'thinc>=7.0.8,<7.1.0' Check the logs for full command output.
是否有不同的链接来安装 C++ 14.0 及更高版本,或者什么,因为我真的厌倦了这个。