You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a beginner in python and currently trying to install qtensor in the python environment via vscode.
Following the instructions, I open terminal in .venv environment in vscode and successfully installed qtree. But when I typed pip install . under qtensor directory trying to install qtensor, the error occurred. UnicodeDecodeError: 'gbk' codec can't decode byte 0xa5 in position 623: illegal multibyte sequence
I also tried to check the file in C:\Users\Administrator\AppData\Local\Temp\pip-build-env-8semf87n\overlay\Lib\site-packages\setuptools\build_meta.py, but I didn't find anything. So I suppose it was being deleted after running the command.
The system I'm using is windows 10 pro, and python version is 3.11.13, pip version 23.3.1
I also tried to install qtensor using the python extension manager provided by vscode, but it also failed and gave no error imformation.
Following are the full error massage:
Processing d:\codes\qtensor
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.18.1 in d:\codes\.venv\lib\site-packages (from qtensor==0.1.2) (1.23.5)
Requirement already satisfied: networkx>=2.3 in d:\codes\.venv\lib\site-packages (from qtensor==0.1.2) (2.8.8)
Requirement already satisfied: matplotlib>=3.1.3 in d:\codes\.venv\lib\site-packages (from qtensor==0.1.2) (3.8.1)
Collecting google-api-core<=1.14.0 (from google-api-core[grpc]<=1.14.0->qtensor==0.1.2)
Using cached google_api_core-1.14.0-py2.py3-none-any.whl (68 kB)
Requirement already satisfied: cirq in d:\codes\.venv\lib\site-packages (from qtensor==0.1.2) (1.1.0)
Collecting qiskit (from qtensor==0.1.2)
Using cached qiskit-0.45.0-py3-none-any.whl.metadata (12 kB)
Collecting qiskit-optimization (from qtensor==0.1.2)
Using cached qiskit_optimization-0.5.0-py3-none-any.whl (156 kB)
Collecting pyrofiler>=0.1.5 (from qtensor==0.1.2)
Using cached pyrofiler-0.1.11-py2.py3-none-any.whl (10 kB)
Collecting loguru (from qtensor==0.1.2)
Using cached loguru-0.7.2-py3-none-any.whl.metadata (23 kB)
Requirement already satisfied: tqdm in d:\codes\.venv\lib\site-packages (from qtensor==0.1.2) (4.66.1)
Requirement already satisfied: click in d:\codes\.venv\lib\site-packages (from qtensor==0.1.2) (8.1.7)
Requirement already satisfied: qtensor-qtree in d:\codes\.venv\lib\site-packages (from qtensor==0.1.2) (0.1.2)
Collecting lazy-import (from qtensor==0.1.2)
Using cached lazy_import-0.2.2.tar.gz (15 kB)
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
╰─> [20 lines of output]
Traceback (most recent call last):
File "d:\codes\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "d:\codes\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\codes\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-8semf87n\overlay\Lib\site-packages\setuptools\build_meta.py", line 355, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-8semf87n\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in _get_build_requires
self.run_setup()
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-8semf87n\overlay\Lib\site-packages\setuptools\build_meta.py", line 507, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-8semf87n\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in run_setup
exec(code, locals())
File "<string>", line 6, in <module>
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa5 in position 623: illegal multibyte sequence
[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.
The text was updated successfully, but these errors were encountered:
faketw
changed the title
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa5 in position 623: illegal multibyte sequence
Installation problem: UnicodeDecodeError: 'gbk' codec can't decode byte 0xa5 in position 623: illegal multibyte sequence
Nov 10, 2023
I'm a beginner in python and currently trying to install qtensor in the python environment via vscode.
Following the instructions, I open terminal in .venv environment in vscode and successfully installed qtree. But when I typed
pip install .
under qtensor directory trying to install qtensor, the error occurred.UnicodeDecodeError: 'gbk' codec can't decode byte 0xa5 in position 623: illegal multibyte sequence
I also tried to check the file in
C:\Users\Administrator\AppData\Local\Temp\pip-build-env-8semf87n\overlay\Lib\site-packages\setuptools\build_meta.py
, but I didn't find anything. So I suppose it was being deleted after running the command.The system I'm using is windows 10 pro, and python version is 3.11.13, pip version 23.3.1
I also tried to install qtensor using the
python extension manager
provided by vscode, but it also failed and gave no error imformation.Following are the full error massage:
The text was updated successfully, but these errors were encountered: