尝试安装 python 3 模块时权限被拒绝

时间:2021-03-23 18:19:55

标签: python selenium-webdriver

我正在尝试在 Windows 上为 python 安装 selenium webdriver 模块,但它总是拒绝我这样做的许可。

  • 我的下载文件夹中有 selenium 文件夹
  • 我有管理员权限
  • 我查看了互联网,但每个人都只是说“以管理员身份运行它。”

我现在很绝望。 请帮忙。

注意:由于某种原因,PIP 对我不起作用。用 pi 尝试后,它只是说,“找不到模块”。如果这个是固定的,也没关系

C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\distutils_patch.py:25: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.
  warnings.warn(
running install
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\\Lib\\site-packages\\test-easy-install-28048.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\Lib\site-packages\

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  https://setuptools.readthedocs.io/en/latest/easy_install.html

Please make the appropriate changes for your system and try again.


D:\Downloads\selenium-3.141.0>```

0 个答案:

没有答案