facebookresearch / pytorch3d

PyTorch3D is FAIR's library of reusable components for deep learning with 3D data
https://pytorch3d.org/
Other
8.81k stars 1.32k forks source link

error: [WinError 2] The system cannot find the specified file. #1597

Closed KID-1412-git closed 4 months ago

KID-1412-git commented 1 year ago

when i run python setup.py install, it occurs this errors

running bdist_egg running egg_info writing pytorch3d.egg-info\PKG-INFO writing dependency_links to pytorch3d.egg-info\dependency_links.txt writing entry points to pytorch3d.egg-info\entry_points.txt writing requirements to pytorch3d.egg-info\requires.txt writing top-level names to pytorch3d.egg-info\top_level.txt reading manifest file 'pytorch3d.egg-info\SOURCES.txt' adding license file 'LICENSE' adding license file 'LICENSE-3RD-PARTY' writing manifest file 'pytorch3d.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_py running build_ext error: [WinError 2] 系统找不到指定的文件。

bottler commented 1 year ago

This is like other issues, most recently https://github.com/facebookresearch/pytorch3d/issues/1576 . I think it is a problem with the build environment. Can you run cl.exe in that terminal? If you are using cuda, can you run nvcc --version?

NeoYangX commented 1 year ago

Got same error: running install U:\conda\envs\pytorch3d\lib\site-packages\setuptools_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !!

    ********************************************************************************
    Please avoid running ``setup.py`` directly.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
    ********************************************************************************

!! self.initialize_options() U:\conda\envs\pytorch3d\lib\site-packages\setuptools_distutils\cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated. !!

    ********************************************************************************
    Please avoid running ``setup.py`` and ``easy_install``.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://github.com/pypa/setuptools/issues/917 for details.
    ********************************************************************************

!! self.initialize_options() running bdist_egg running egg_info writing pytorch3d.egg-info\PKG-INFO writing dependency_links to pytorch3d.egg-info\dependency_links.txt writing entry points to pytorch3d.egg-info\entry_points.txt writing requirements to pytorch3d.egg-info\requires.txt writing top-level names to pytorch3d.egg-info\top_level.txt reading manifest file 'pytorch3d.egg-info\SOURCES.txt' adding license file 'LICENSE' adding license file 'LICENSE-3RD-PARTY' writing manifest file 'pytorch3d.egg-info\SOURCES.txt' installing library code to build\bdist.win32\egg running install_lib running build_py running build_ext error: [WinError 2] The system cannot find the file specified

run cl:

Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30151 for x86 Copyright (C) Microsoft Corporation. All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]

run nvcc --version:

nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Tue_Mar__8_18:36:24_Pacific_Standard_Time_2022 Cuda compilation tools, release 11.6, V11.6.124 Build cuda_11.6.r11.6/compiler.31057947_0

bottler commented 1 year ago

Sorry, I can't help further.

zhang-deep commented 11 months ago

我也遇到这样的问题了

serkankavak commented 10 months ago

I had the same problem and I solved it. It was because of wrong selection cuda version. I have multiple cuda versions installed for different applications and even though CUDA_PATH environment variable is selected as version 11.3, nvcc --version would show me 11.8. So I deleted all the path variables and left only version 11.3. Then the installation was successful. Make sure to check system and user path variables and leave only one cuda version that you are going to use.

suoer95 commented 8 months ago

我也遇到这样的问题了 你解决了嘛?

yonadance commented 3 weeks ago

即便改变了对应版本的cuda也还是这样子报错