(nene) castor@home:~/AI/nene-emotion$ pip install pyopenjtalk==0.3.0 -i https://pypi.tuna.tsinghua.edu.cn/simple Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting pyopenjtalk==0.3.0 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b4/80/a2505a37937fcd108b7c1ab66f7d1d48560525b1da71993860d11095a286/pyopenjtalk-0.3.0.tar.gz (1.5 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [25 lines of output] setup.py:26: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. _CYTHON_INSTALLED = ver >= LooseVersion(min_cython_ver) Traceback (most recent call last): File "/home/castor/anaconda3/envs/nene/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in main() File "/home/castor/anaconda3/envs/nene/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/home/castor/anaconda3/envs/nene/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) File "/tmp/pip-build-env-1rn83ba5/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 162, in get_requires_for_build_wheel return self._get_build_requires( File "/tmp/pip-build-env-1rn83ba5/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-1rn83ba5/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 267, in run_setup super(_BuildMetaLegacyBackend, File "/tmp/pip-build-env-1rn83ba5/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 158, in run_setup exec(compile(code, __file__, 'exec'), locals()) File "setup.py", line 153, in File "/home/castor/anaconda3/envs/nene/lib/python3.8/subprocess.py", line 493, in run with Popen(*popenargs, **kwargs) as process: File "/home/castor/anaconda3/envs/nene/lib/python3.8/subprocess.py", line 858, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/home/castor/anaconda3/envs/nene/lib/python3.8/subprocess.py", line 1704, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'cmake' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. #报错,无法安装 (nene) castor@home:~/AI/nene-emotion$ conda install cmake Collecting package metadata (current_repodata.json): done Solving environment: done ==> WARNING: A newer version of conda exists. <== current version: 22.9.0 latest version: 22.11.1 Please update conda by running $ conda update -n base -c defaults conda ## Package Plan ## environment location: /home/castor/anaconda3/envs/nene added / updated specs: - cmake The following packages will be downloaded: package | build ---------------------------|----------------- cmake-3.22.1 | h1fce559_0 7.3 MB krb5-1.19.4 | h568e23c_0 1.3 MB libcurl-7.87.0 | h91b91d3_0 373 KB libedit-3.1.20221030 | h5eee18b_0 181 KB libuv-1.40.0 | h7b6447c_0 736 KB lz4-c-1.9.4 | h6a678d5_0 154 KB rhash-1.4.1 | h3c74f83_1 203 KB ------------------------------------------------------------ Total: 10.3 MB The following NEW packages will be INSTALLED: bzip2 pkgs/main/linux-64::bzip2-1.0.8-h7b6447c_0 None c-ares pkgs/main/linux-64::c-ares-1.18.1-h7f8727e_0 None cmake pkgs/main/linux-64::cmake-3.22.1-h1fce559_0 None expat pkgs/main/linux-64::expat-2.4.9-h6a678d5_0 None krb5 pkgs/main/linux-64::krb5-1.19.4-h568e23c_0 None libcurl pkgs/main/linux-64::libcurl-7.87.0-h91b91d3_0 None libedit pkgs/main/linux-64::libedit-3.1.20221030-h5eee18b_0 None libev pkgs/main/linux-64::libev-4.33-h7f8727e_1 None libnghttp2 pkgs/main/linux-64::libnghttp2-1.46.0-hce63b2e_0 None libssh2 pkgs/main/linux-64::libssh2-1.10.0-h8f2d780_0 None libuv pkgs/main/linux-64::libuv-1.40.0-h7b6447c_0 None lz4-c pkgs/main/linux-64::lz4-c-1.9.4-h6a678d5_0 None rhash pkgs/main/linux-64::rhash-1.4.1-h3c74f83_1 None zstd pkgs/main/linux-64::zstd-1.5.2-ha4553b6_0 None Proceed ([y]/n)? y Downloading and Extracting Packages cmake-3.22.1 | 7.3 MB | ################################################################################################################################## | 100% libedit-3.1.20221030 | 181 KB | ################################################################################################################################## | 100% libcurl-7.87.0 | 373 KB | ################################################################################################################################## | 100% libuv-1.40.0 | 736 KB | ################################################################################################################################## | 100% krb5-1.19.4 | 1.3 MB | ################################################################################################################################## | 100% rhash-1.4.1 | 203 KB | ################################################################################################################################## | 100% lz4-c-1.9.4 | 154 KB | ################################################################################################################################## | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done Retrieving notices: ...working... done #从conda安装cmake!不用pip (nene) castor@home:~/AI/nene-emotion$ conda install make Collecting package metadata (current_repodata.json): done Solving environment: done ==> WARNING: A newer version of conda exists. <== current version: 22.9.0 latest version: 22.11.1 Please update conda by running $ conda update -n base -c defaults conda ## Package Plan ## environment location: /home/castor/anaconda3/envs/nene added / updated specs: - make The following packages will be downloaded: package | build ---------------------------|----------------- make-4.2.1 | h1bed415_1 415 KB ------------------------------------------------------------ Total: 415 KB The following NEW packages will be INSTALLED: make pkgs/main/linux-64::make-4.2.1-h1bed415_1 None Proceed ([y]/n)? y Downloading and Extracting Packages make-4.2.1 | 415 KB | ################################################################################################################################## | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done Retrieving notices: ...working... done #从conda安装make (nene) castor@home:~/AI/nene-emotion$ pip install pyopenjtalk==0.3.0 Collecting pyopenjtalk==0.3.0 Using cached pyopenjtalk-0.3.0.tar.gz (1.5 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [50 lines of output] CMake Deprecation Warning at CMakeLists.txt:5 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:17 (project): No CMAKE_C_COMPILER could be found. Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. CMake Error at CMakeLists.txt:17 (project): No CMAKE_CXX_COMPILER could be found. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. -- Configuring incomplete, errors occurred! See also "/tmp/pip-install-ftc5gau7/pyopenjtalk_a4af58ababc64bd6b7a2cd891ef3d2ea/lib/open_jtalk/src/build/CMakeFiles/CMakeOutput.log". See also "/tmp/pip-install-ftc5gau7/pyopenjtalk_a4af58ababc64bd6b7a2cd891ef3d2ea/lib/open_jtalk/src/build/CMakeFiles/CMakeError.log". setup.py:26: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. _CYTHON_INSTALLED = ver >= LooseVersion(min_cython_ver) Traceback (most recent call last): File "/home/castor/anaconda3/envs/nene/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in main() File "/home/castor/anaconda3/envs/nene/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/home/castor/anaconda3/envs/nene/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) File "/tmp/pip-build-env-iqeg7t38/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 162, in get_requires_for_build_wheel return self._get_build_requires( File "/tmp/pip-build-env-iqeg7t38/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-iqeg7t38/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 267, in run_setup super(_BuildMetaLegacyBackend, File "/tmp/pip-build-env-iqeg7t38/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 158, in run_setup exec(compile(code, __file__, 'exec'), locals()) File "setup.py", line 154, in File "/home/castor/anaconda3/envs/nene/lib/python3.8/subprocess.py", line 448, in check_returncode raise CalledProcessError(self.returncode, self.args, self.stdout, subprocess.CalledProcessError: Command '['cmake', '..', '-DHTS_ENGINE_INCLUDE_DIR=.', '-DHTS_ENGINE_LIB=dummy']' returned non-zero exit status 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. #还是不行。 (nene) castor@home:~/AI/nene-emotion$ sudo apt install g++ #apt安装g++,输出内容略 (nene) castor@home:~/AI/nene-emotion$ pip install pyopenjtalk==0.3.0 Collecting pyopenjtalk==0.3.0 Using cached pyopenjtalk-0.3.0.tar.gz (1.5 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting cython>=0.21.0 Using cached Cython-0.29.33-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (1.9 MB) Collecting six Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting tqdm Downloading tqdm-4.64.1-py2.py3-none-any.whl (78 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.5/78.5 kB 575.4 kB/s eta 0:00:00 Collecting numpy>=1.20.0 Using cached numpy-1.24.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB) Building wheels for collected packages: pyopenjtalk Building wheel for pyopenjtalk (pyproject.toml) ... done Created wheel for pyopenjtalk: filename=pyopenjtalk-0.3.0-cp38-cp38-linux_x86_64.whl size=5948416 sha256=98eb73de4f8728f49f9d2882c7ba5e977df525067c70e7d761381bf14e8da84f Stored in directory: /home/castor/.cache/pip/wheels/b0/aa/4f/f026781f863d1f548f742aacc15a3fe83f23eaef5503cb236c Successfully built pyopenjtalk Installing collected packages: tqdm, six, numpy, cython, pyopenjtalk Successfully installed cython-0.29.33 numpy-1.24.1 pyopenjtalk-0.3.0 six-1.16.0 tqdm-4.64.1 #安装成功。