esay_install U setuptools失败,错误为:[WinError 5]访问被拒绝:'c:\\program files\\python\\Scripts\\easy_安装.exe'

2024-09-28 01:27:20 发布

您现在位置:Python中文网/ 问答频道 /正文

请注意,我正在以提升(管理员)模式运行所有安装。 我尝试使用命令pip install gearman安装一个名为gearman的包。下面是输出。在

收集齿轮工

使用缓存的gearman-2.0.2。焦油gz在

Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\ANURAG~1\AppData\Local\Temp\pip-build-yk442wl_\gearman\setup.py", line 5, in <module>
    from gearman import __version__ as version
  File "C:\Users\ANURAG~1\AppData\Local\Temp\pip-build-yk442wl_\gearman\gearman\__init__.py", line 7, in <module>
    from gearman.admin_client import GearmanAdminClient
  File "C:\Users\ANURAG~1\AppData\Local\Temp\pip-build-yk442wl_\gearman\gearman\admin_client.py", line 4, in <module>
    from gearman import util
  File "C:\Users\ANURAG~1\AppData\Local\Temp\pip-build-yk442wl_\gearman\gearman\util.py", line 62
    except select_lib.error, exc:
                           ^
SyntaxError: invalid syntax

----------------------------------------

命令“python设置.pyegg_info“失败,错误代码1位于C:\Users\ANURAG~1\AppData\Local\Temp\pip-build-yk442wl\gearman\

我跟踪了thisstackoverflow页面,正在尝试第一个答案

此命令引发错误:[WinError 5]访问被拒绝:'c:\program files\python\Scripts\easy_安装.exe'

下面是堆栈跟踪。在

搜索设置工具

正在读取https://pypi.python.org/simple/setuptools/

最佳匹配:setuptools 34.3.3

处理setuptools-34.3.3-py3.5.egg

setuptools 34.3.3已经是easy中的活动版本-安装.pth在

安装easy_install-脚本.py脚本到c:\program files\python\Scripts

安装简单_安装.exe脚本到c:\program files\python\Scripts

错误:[WinError 5]访问被拒绝:'c:\program files\python\Scripts\easy_安装.exe'

我搜索错误“the WinError 5 Access is denied”,博客上说你必须在管理员模式+下运行才能尝试禁用防病毒功能。我都试过了,结果是一样的。请注意,所有命令都是在管理员模式下运行的。请帮忙。提前谢谢。 我使用python3.5作为解释器并在windows上运行。在


Tags: pipinfrompy命令buildlocalline

热门问题