在 Python 中下载 (pytube) 库时出现问题
Problem downloading (pytube) library in Python
我想从 Python 个名为 (pytube) 的库下载一个库
当我在命令面板中放置下载命令[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.
于是我在cmd面板中写入提示[pip install --upgrade pip]的内容,得到如下输出:
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.
说明性图片:
https://suar.me/ve9J0
在另一次安装尝试中,我在 (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'
说明性图片:
https://suar.me/OZYPG
而且我没有安装库成功!这是为什么?我如何找到解决方案?
尝试安装 pytube3。 pip install pytube3
对于pip的警告只是一个警告,因为你没有使用最新版本,使用这个命令升级它:python -m pip install --upgrade pip
欢迎使用 Whosebug!!!
对于已安装的 pytube
,请尝试升级到最新版本 pytube-10.6.1
:
python -m pip install --upgrade pytube
对于 pip install --upgrade pip
错误,这是由于访问不足造成的:
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.
尝试:
python -m pip install --upgrade pip --user
或者以管理员身份打开命令提示符并执行相同的命令。
我想从 Python 个名为 (pytube) 的库下载一个库 当我在命令面板中放置下载命令[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.
于是我在cmd面板中写入提示[pip install --upgrade pip]的内容,得到如下输出:
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.
说明性图片: https://suar.me/ve9J0
在另一次安装尝试中,我在 (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'
说明性图片: https://suar.me/OZYPG
而且我没有安装库成功!这是为什么?我如何找到解决方案?
尝试安装 pytube3。 pip install pytube3
对于pip的警告只是一个警告,因为你没有使用最新版本,使用这个命令升级它:python -m pip install --upgrade pip
欢迎使用 Whosebug!!!
对于已安装的 pytube
,请尝试升级到最新版本 pytube-10.6.1
:
python -m pip install --upgrade pytube
对于 pip install --upgrade pip
错误,这是由于访问不足造成的:
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.
尝试:
python -m pip install --upgrade pip --user
或者以管理员身份打开命令提示符并执行相同的命令。