|
发表于 2024-9-10 16:36:52
|
显示全部楼层
装虚拟环境需要先装,visual studio吗?按照过程经常出错,当前报错信息如下,请问是什么原因,如何解决?
2024-09-10 16:29:54.863 [info] copying lib\matplotlib\mpl-data\fonts\pdfcorefonts\Courier-BoldOblique.afm -> build\lib.win-amd64-cpython-310\matplotlib\mpl-data\fonts\pdfcorefonts
copying lib\matplotlib\mpl-data\sample_data\grace_hopper.png -> build\lib.win-amd64-cpython-310\matplotlib\mpl-data\sample_data
copying lib\matplotlib\backends\web_backend\jquery-ui-1.12.1\images\ui-icons_777777_256x240.png -> build\lib.win-amd64-cpython-310\matplotlib\backends\web_backend\jquery-ui-1.12.1\images
UPDATING build\lib.win-amd64-cpython-310\matplotlib\_version.py
set build\lib.win-amd64-cpython-310\matplotlib\_version.py to '3.2.2'
running build_ext
Extracting freetype-2.6.1.tar.gz
2024-09-10 16:29:54.864 [info] Building freetype in build\freetype-2.6.1
devenv build\freetype-2.6.1\builds\windows\vc2010\freetype.sln /upgrade
error: command 'devenv' failed: None
[end of output]
note
2024-09-10 16:29:54.864 [info] : This error originates from a subprocess, and is likely not a problem with pip.
2024-09-10 16:29:54.866 [info] ERROR: Failed building wheel for matplotlib
2024-09-10 16:29:54.888 [info] Failed to build matplotlib
2024-09-10 16:29:54.954 [info] ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (matplotlib)
2024-09-10 16:30:01.779 [info] Traceback (most recent call last):
File "c:\Users\yuxuefei\.vscode\extensions\ms-python.python-2024.14.0-win32-x64\python_files\create_venv.py", line 92, in run_process
2024-09-10 16:30:01.788 [info] subprocess.run(args, cwd=os.getcwd(), check=True) # noqa: PTH109
File "C:\veighna_studio\lib\subprocess.py", line 526, in run
2024-09-10 16:30:01.789 [info] raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError
2024-09-10 16:30:01.790 [info] : Command '['d:\\quantlab\\quantlab5.9\\.venv\\Scripts\\python.exe', '-m', 'pip', 'install', '-r', 'd:\\quantlab\\quantlab5.9\\requirements.txt']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\Users\yuxuefei\.vscode\extensions\ms-python.python-2024.14.0-win32-x64\python_files\create_venv.py", line 254, in <module>
main(sys.argv[1:])
File "c:\Users\yuxuefei\.vscode\extensions\ms-python.python-2024.14.0-win32-x64\python_files\create_venv.py", line 246, in main
2024-09-10 16:30:01.791 [info] install_requirements(venv_path, requirements)
File "c:\Users\yuxuefei\.vscode\extensions\ms-python.python-2024.14.0-win32-x64\python_files\create_venv.py", line 112, in install_requirements
run_process(
2024-09-10 16:30:01.793 [info] File "c:\Users\yuxuefei\.vscode\extensions\ms-python.python-2024.14.0-win32-x64\python_files\create_venv.py", line 94, in run_process
raise VenvError(error_message) from exc
__main__.VenvError: CREATE_VENV.PIP_FAILED_INSTALL_REQUIREMENTS
2024-09-10 16:30:01.825 [error] Error while running venv creation script: CREATE_VENV.PIP_FAILED_INSTALL_REQUIREMENTS
2024-09-10 16:30:01.827 [error] CREATE_VENV.PIP_FAILED_INSTALL_REQUIREMENTS |
|