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 -v -e .时出现了以下错误 #635

Open
Wei-Wu233 opened this issue Dec 20, 2023 · 1 comment
Open

运行pip install -v -e .时出现了以下错误 #635

Wei-Wu233 opened this issue Dec 20, 2023 · 1 comment

Comments

@Wei-Wu233
Copy link

(obb) E:\code\yolov5_obb-master\utils\nms_rotated>pip install -v -e .
Using pip 23.3.1 from D:\ProgramData\anaconda\envs\obb\lib\site-packages\pip (python 3.9)
Obtaining file:///E:/code/yolov5_obb-master/utils/nms_rotated
Running command python setup.py egg_info
running egg_info
creating C:\Users\17995\AppData\Local\Temp\pip-pip-egg-info-2dumgjbq\nms_rotated.egg-info
writing C:\Users\17995\AppData\Local\Temp\pip-pip-egg-info-2dumgjbq\nms_rotated.egg-info\PKG-INFO
writing dependency_links to C:\Users\17995\AppData\Local\Temp\pip-pip-egg-info-2dumgjbq\nms_rotated.egg-info\dependency_links.txt
writing top-level names to C:\Users\17995\AppData\Local\Temp\pip-pip-egg-info-2dumgjbq\nms_rotated.egg-info\top_level.txt
writing manifest file 'C:\Users\17995\AppData\Local\Temp\pip-pip-egg-info-2dumgjbq\nms_rotated.egg-info\SOURCES.txt'
D:\ProgramData\anaconda\envs\obb\lib\site-packages\torch\utils\cpp_extension.py:381: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
reading manifest file 'C:\Users\17995\AppData\Local\Temp\pip-pip-egg-info-2dumgjbq\nms_rotated.egg-info\SOURCES.txt'
writing manifest file 'C:\Users\17995\AppData\Local\Temp\pip-pip-egg-info-2dumgjbq\nms_rotated.egg-info\SOURCES.txt'
Preparing metadata (setup.py) ... done
Installing collected packages: nms-rotated
Running setup.py develop for nms-rotated
Running command python setup.py develop
running develop
D:\ProgramData\anaconda\envs\obb\lib\site-packages\setuptools\command\develop.py:40: 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.
        ********************************************************************************

!!
  easy_install.initialize_options(self)
D:\ProgramData\anaconda\envs\obb\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()
running egg_info
writing nms_rotated.egg-info\PKG-INFO
writing dependency_links to nms_rotated.egg-info\dependency_links.txt
writing top-level names to nms_rotated.egg-info\top_level.txt
D:\ProgramData\anaconda\envs\obb\lib\site-packages\torch\utils\cpp_extension.py:381: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
  warnings.warn(msg.format('we could not find ninja.'))
reading manifest file 'nms_rotated.egg-info\SOURCES.txt'
writing manifest file 'nms_rotated.egg-info\SOURCES.txt'
running build_ext
D:\ProgramData\anaconda\envs\obb\lib\site-packages\torch\utils\cpp_extension.py:316: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
  warnings.warn(f'Error checking compiler version for {compiler}: {error}')
error: [WinError 2] 系统找不到指定的文件。
error: subprocess-exited-with-error

× python setup.py develop 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.
full command: 'D:\ProgramData\anaconda\envs\obb\python.exe' -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
#   import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
#   setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
#     manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize

try:
    import setuptools
except ImportError as error:
    print(
        "ERROR: Can not execute `setup.py` since setuptools is not available in "
        "the build environment.",
        file=sys.stderr,
    )
    sys.exit(1)

__file__ = %r
sys.argv[0] = __file__

if os.path.exists(__file__):
    filename = __file__
    with tokenize.open(__file__) as f:
        setup_py_code = f.read()
else:
    filename = "<auto-generated setuptools caller>"
    setup_py_code = "from setuptools import setup; setup()"

exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'E:\\code\\yolov5_obb-master\\utils\\nms_rotated\\setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' develop --no-deps
cwd: E:\code\yolov5_obb-master\utils\nms_rotated\

error: subprocess-exited-with-error

× python setup.py develop 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.
大家帮我看看是什么问题,谢谢

@karthikyerram
Copy link

any solution? facing the same problem

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

2 participants