opts 모듈을 설치할 때 Windows용 Python에서 "pip install"이 중단됨

opts 모듈을 설치할 때 Windows용 Python에서 "pip install"이 중단됨

설치하려고 하면 체인 오류가 발생합니다.선택하다폴더의 Python 자체 pip스크립트 에 있습니다 Python34. 어떻게 든 설치를 관리할 수 없습니다.

시도하는 옵션:

----------------------------------->>>
Downloading/unpacking opts
  Downloading opts-0.1.1.tar.gz
  Running setup.py (path:C:\Users\user\AppData\Local\Temp\pip_build_user\opts\setup.py) egg_info for package opts
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "C:\Users\user\AppData\Local\Temp\pip_build_user\opts\setup.py", line 3, in <module>
        from distribute_setup import use_setuptools
    ImportError: No module named 'distribute_setup'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "C:\Users\user\AppData\Local\Temp\pip_build_user\opts\setup.py", line 3, in <module>

    from distribute_setup import use_setuptools

ImportError: No module named 'distribute_setup'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in C:\Users\user\AppData\Local\Temp\pip_build_user\opts
Storing debug log for failure in C:\Users\user\pip\pip.log

설치하려고 합니다 distribute_setup.

 ---------->

C:\Python34\Scripts>pip install distribute_setup
Downloading/unpacking distribute-setup
  Could not find any downloads that satisfy the requirement distribute-setup
Cleaning up...
No distributions at all found for distribute-setup
Storing debug log for failure in C:\Users\user\pip\pip.log

pip.log 파일:

 ---------->
C:\Python34\Scripts\pip run on 08/17/19 02:17:45
Downloading/unpacking distribute-setup
  Getting page https://pypi.python.org/simple/distribute_setup/
  Could not fetch URL https://pypi.python.org/simple/distribute_setup/: 404 Client Error: Not Found
  Will skip URL https://pypi.python.org/simple/distribute_setup/ when looking for download links for distribute-setup
  Getting page https://pypi.python.org/simple/
  URLs to search for versions for distribute-setup:
  * https://pypi.python.org/simple/distribute_setup/
  Getting page https://pypi.python.org/simple/distribute_setup/
  Could not fetch URL https://pypi.python.org/simple/distribute_setup/: 404 Client Error: Not Found
  Will skip URL https://pypi.python.org/simple/distribute_setup/ when looking for download links for distribute-setup
  Could not find any downloads that satisfy the requirement distribute-setup
Cleaning up...
  Removing temporary dir C:\Users\user\AppData\Local\Temp\pip_build_user...
No distributions at all found for distribute-setup
Exception information:
Traceback (most recent call last):
  File "C:\Python34\lib\site-packages\pip\basecommand.py", line 122, in main
    status = self.run(options, args)
  File "C:\Python34\lib\site-packages\pip\commands\install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "C:\Python34\lib\site-packages\pip\req.py", line 1177, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "C:\Python34\lib\site-packages\pip\index.py", line 277, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
pip.exceptions.DistributionNotFound: No distributions at all found for distribute-setup

답변1

pip install왠지 고장났어[.]

그럴 것 같지 않습니다.

pip상대적으로 최신 버전 ( 각각 pip버전 18.x 및 pip버전 19.x) 을 사용하는 Python 2.7.16 및 Python 3.x에서 동일한 오류가 발생합니다 . 그리고 pip나에게는 그렇지 않으면 정상적으로 작동합니다.

더 가능성이 높은 것은 opts오래된 모듈이고 스크립트에 오래된 참조 및 지침을 사용하여 오류가 발생한다는 것입니다.

나이에 관해서는 다음을 고려하십시오.opts는 2010년에 출시되었습니다.,파이썬 2.7과 함께그리고 그건 현재Python 2.7에 대한 공식 지원은 2020년 1월에 종료될 예정입니다..


제안하자면, 이것이 단순히 기존 스크립트에 대한 지원 모듈이 아닌 경우 opts. 하나의 옵션은 Python 자체일 수 있습니다.인수도서관.


관련 정보