Python에서 (pytube) 라이브러리 다운로드 문제
cmd 패널에 다운로드 명령 [pip install git + https://github.com/pytube/pytube]을 입력하면 다음과 같은 결과가 출력됩니다.
Collecting git+https://github.com/pytube/pytube
Cloning https://github.com/pytube/pytube to c:\users\jit\appdata\local\temp\pip-req-build-w3q3fwqn
Requirement already satisfied (use --upgrade to upgrade): pytube==10.6.1 from git+https://github.com/pytube/pytube in c:\users\jit\appdata\local\programs\python\python39\lib\site-packages
Using legacy 'setup.py install' for pytube, since package 'wheel' is not installed.
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the 'c:\users\jit\appdata\local\programs\python\python39\python.exe -m pip install --upgrade pip' command.
그래서 [pip install --upgrade pip] 프롬프트를 cmd 패널에 작성하면 다음과 같은 결과가 나타납니다.
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.2.3
Uninstalling pip-20.2.3:
Successfully uninstalled pip-20.2.3
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\\Users\\jit\\AppData\\Local\\Temp\\pip-uninstall-pnqylmmj\\pip.exe'
Consider using the `--user` option or check the permissions.
예시 이미지 :
그리고 또 다른 설치 시도에서 (PyCharm) 프로그램 내부의 (터미널)에 명령을 입력했습니다.
Collecting git+https://github.com/pytube/pytube
Cloning https://github.com/pytube/pytube to c:\users\jit\appdata\local\temp\pip-req-build-o5uke_cl
Running command git clone -q https://github.com/pytube/pytube 'C:\Users\jit\AppData\Local\Temp\pip-req-build-o5uke_cl'
예시 이미지 :
그리고 나는 라이브러리 설치에 성공하지 못했습니다! 왜 그런 겁니까? 솔루션에 도달하려면 어떻게 해야 합니까?
Reference
이 문제에 관하여(Python에서 (pytube) 라이브러리 다운로드 문제), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/hussein_ouda/problem-downloading-pytube-library-in-python-563b텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)