Skip to content

全新环境直接从github安装会出错 #230

@eiffelcn

Description

@eiffelcn

CMD: pip install git+https://github.com/waditu/czsc.git@V0.9.67 -U

Error message:

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting git+https://github.com/waditu/czsc.git@V0.9.67
Cloning https://github.com/waditu/czsc.git (to revision V0.9.67) to /tmp/pip-req-build-zj9le4dr
Running command git clone --filter=blob:none --quiet https://github.com/waditu/czsc.git /tmp/pip-req-build-zj9le4dr
Running command git checkout -b V0.9.67 --track origin/V0.9.67
Switched to a new branch 'V0.9.67'
Branch 'V0.9.67' set up to track remote branch 'V0.9.67' from 'origin'.
Resolved https://github.com/waditu/czsc.git to commit 096251e
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
╰─> [22 lines of output]
Traceback (most recent call last):
File "/home/eiffel/anaconda3/envs/py312/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in
main()
File "/home/eiffel/anaconda3/envs/py312/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/eiffel/anaconda3/envs/py312/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-qydka85c/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-qydka85c/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-qydka85c/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 512, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-qydka85c/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
File "", line 2, in
File "/tmp/pip-req-build-zj9le4dr/czsc/init.py", line 7, in
from rs_czsc import (
ModuleNotFoundError: No module named 'rs_czsc'
[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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions