Closed xiakela closed 2 months ago
I had the same output by pip causal_conv1d is not a valid editable requirement.
I solved it by
cd causal-conv1d/
pip install -e .
it installed successfully.
In your case it looks like a CUDA version mismatch. Retry the installation with CUDA 11.8
I had the same output by pip
causal_conv1d is not a valid editable requirement.
I solved it by
cd causal-conv1d/ pip install -e .
it installed successfully.
In your case it looks like a CUDA version mismatch. Retry the installation with CUDA 11.8
hello brother,
I had tried your code, still it is not being installed.
Does any one have method to solve this issue?
below is description:
(vim) huawei@huawei-B460MDS3HV2:/media/huawei/93219077-4d31-405d-88e2-323585a4ba3e/effective-ECG-recognition/Vim-main/causal-conv1d$ pip install -e . Obtaining file:///media/huawei/93219077-4d31-405d-88e2-323585a4ba3e/effective-ECG-recognition/Vim-main/causal-conv1d Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
/media/huawei/93219077-4d31-405d-88e2-323585a4ba3e/effective-ECG-recognition/Vim-main/causal-conv1d/setup.py:77: UserWarning: causal_conv1d was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.
warnings.warn(
Traceback (most recent call last):
File "
torch.__version__ = 2.1.1+cu118
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
@poult-lab
from your error message but nvcc was not found. Are you sure your environment has nvcc available?
it means the CUDA driver is not properly installed.
try debugging using
nvcc --version
it should say CUDA 11.8 or whichever version you have installed.
if you did install CUDA, then your PATH
, CUDA_HOME
and LD_LIBRARY
variables are not set properly. you need to update them
@poult-lab from your error message
but nvcc was not found. Are you sure your environment has nvcc available?
it means the CUDA driver is not properly installed.try debugging using
nvcc --version
it should say CUDA 11.8 or whichever version you have installed.
if you did install CUDA, then your
PATH
,CUDA_HOME
andLD_LIBRARY
variables are not set properly. you need to update them
Thank you for your quick reply. That is very valuable. I appreciate.
I update CUDA to v11.8 and complete the variable configuration, but still having the same problem—— RuntimeError: Error compiling objects for extension [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
I update CUDA to v11.8 and complete the variable configuration, but still having the same problem—— RuntimeError: Error compiling objects for extension [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
Refer #53 , checkout causal-conv1d
version 1.1.3.post1 and install from source.
我将 CUDA 更新到 v11.8 并完成变量配置,但仍然有同样的问题—— RuntimeError:编译扩展对象时出错 [输出结束] 注意:此错误源自子进程,可能不是 pip 的问题。
请参阅 #53 ,签出版本 1.1.3.post1 并从源代码安装。
causal-conv1d
Thank you for your reply,but I want to deploy a virtual environment on Windows, maybe it doesn't work in Windows? I also had a problem that say——ERROR: Could not build wheels for causal-conv1d, which is required to install pyproject.toml-based projects
我将 CUDA 更新到 v11.8 并完成变量配置,但仍然有同样的问题—— RuntimeError:编译扩展对象时出错 [输出结束] 注意:此错误源自子进程,可能不是 pip 的问题。
请参阅 #53 ,签出版本 1.1.3.post1 并从源代码安装。
causal-conv1d
Thank you for your reply,but I want to deploy a virtual environment on Windows, maybe it doesn't work in Windows? I also had a problem that say——ERROR: Could not build wheels for causal-conv1d, which is required to install pyproject.toml-based projects
我没有试过在windows上面做这个,但是我觉得尽量还是在linux上面部署比较好
我将 CUDA 更新到 v11.8 并完成变量配置,但仍然有同样的问题—— RuntimeError:编译扩展对象时出错 [输出结束] 注意:此错误源自子进程,可能不是 pip 的问题。
请参阅 #53 ,签出版本 1.1.3.post1 并从源代码安装。
causal-conv1d
Thank you for your reply,but I want to deploy a virtual environment on Windows, maybe it doesn't work in Windows? I also had a problem that say——ERROR: Could not build wheels for causal-conv1d, which is required to install pyproject.toml-based projects
我没有试过在windows上面做这个,但是我觉得尽量还是在linux上面部署比较好
okay,thanks for your reply!
I try to install causal_conv1d and use the command: pip install -e causal_conv1d>=1.1.0 but have this error: ERROR: causal_conv1d is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with bzr+http, bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).
then I use the command : pip install -e causual-conv1d
but this has another problem: Installing collected packages: causal-conv1d Running setup.py develop for causal-conv1d error: subprocess-exited-with-error
error: subprocess-exited-with-error