Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install DCNv4时出现问题 #4

Open
StephenDeng01 opened this issue Jul 5, 2024 · 3 comments
Open

pip install DCNv4时出现问题 #4

StephenDeng01 opened this issue Jul 5, 2024 · 3 comments

Comments

@StephenDeng01
Copy link

开始时:
(dynrefer) C:\Users\Administrator>pip install DCNv4==1.0.0.post2
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting DCNv4==1.0.0.post2
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f7/3c/7f7386b4ada92f35100242cb633cccaaa324579bfa7cd2518870a303774e/DCNv4-1.0.0.post2.tar.gz (19 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: DCNv4
Building wheel for DCNv4 (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-38
creating build\lib.win-amd64-cpython-38\DCNv4
copying DCNv4_init_.py -> build\lib.win-amd64-cpython-38\DCNv4
creating build\lib.win-amd64-cpython-38\DCNv4\functions
copying DCNv4/functions\dcnv4_func.py -> build\lib.win-amd64-cpython-38\DCNv4/functions
copying DCNv4/functions\flash_deform_attn_func.py -> build\lib.win-amd64-cpython-38\DCNv4/functions
copying DCNv4/functions\table.py -> build\lib.win-amd64-cpython-38\DCNv4/functions
copying DCNv4/functions_init_.py -> build\lib.win-amd64-cpython-38\DCNv4/functions
creating build\lib.win-amd64-cpython-38\DCNv4\modules
copying DCNv4/modules\dcnv4.py -> build\lib.win-amd64-cpython-38\DCNv4/modules
copying DCNv4/modules\flash_deform_attn.py -> build\lib.win-amd64-cpython-38\DCNv4/modules
copying DCNv4/modules_init_.py -> build\lib.win-amd64-cpython-38\DCNv4/modules
running build_ext
D:\Anaconda3\envs\dynrefer\lib\site-packages\torch\utils\cpp_extension.py:381: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
warnings.warn(f'Error checking compiler version for {compiler}: {error}')
building 'DCNv4.ext' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for DCNv4
Running setup.py clean for DCNv4
Failed to build DCNv4
ERROR: Could not build wheels for DCNv4, which is required to install pyproject.toml-based projects

后面又变成:
Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/dcnv4/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /simple/dcnv4/ (Caused by SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1135)'))) - skipping
ERROR: Could not find a version that satisfies the requirement DCNv4==1.0.0.post2 (from versions: none)
ERROR: No matching distribution found for DCNv4==1.0.0.post2
一点头绪都没,求大神指点

@StephenDeng01
Copy link
Author

第二个问题是因为挂了梯子 回到了第一个问题。第一个问题我无法解决,请大神帮助。

@callsys
Copy link
Owner

callsys commented Jul 6, 2024

你好!看起来好像是DCNv4安装失败了,可以尝试在DCNv4的官方代码或者issue中找到解决方法。我们目前只提供了在ubuntu上成功运行的环境。在windows上运行代码可能会遇到一些问题。

@liguge
Copy link

liguge commented Aug 3, 2024

第二个问题是因为挂了梯子 回到了第一个问题。第一个问题我无法解决,请大神帮助。

请问您在windows上运行解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants