我正在尝试在python 3.5中下载几个软件包,但是pip不断抛出异常(通过pip install pyzmail),请看下面的内容:
我如何克服这个问题?
例外: Traceback(最近一次调用最后一次): 文件" c:\ users \ chiruld \ appdata \ local \ programs \ python \ python35 \ lib \ pip \ basecommand.py",第122行,主要 status = self.run(options,args) 文件" c:\ users \ chiruld \ appdata \ local \ programs \ python \ python35 \ lib \ pip \ commands \ install.py",第278行,在运行中 requirement_set.prepare_files(finder,force_root_egg_info = self.bundle,bundle = self.bundle) 文件" c:\ users \ chiruld \ appdata \ local \ programs \ python \ python35 \ lib \ pip \ req.py",第1229行,在prepare_files中 req_to_install.run_egg_info() 在run_egg_info中的文件" c:\ users \ chiruld \ appdata \ local \ programs \ python \ python35 \ lib \ pip \ req.py",第292行 logger.notify('正在运行setup.py(路径:%s)egg_info包%s'%(self.setup_py,self.name)) 在setup_py中的文件" c:\ users \ chiruld \ appdata \ local \ programs \ python \ python35 \ lib \ pip \ req.py",第265行 import setuptools 文件" c:\ users \ chiruld \ appdata \ local \ programs \ python \ python35 \ lib \ setuptools__init __。py",第2行,in 来自setuptools.extension import Extension,Library 文件" c:\ users \ chiruld \ appdata \ local \ programs \ python \ python35 \ lib \ setuptools \ extension.py",第5行,in 来自setuptools.dist import _get_unpatched 文件" c:\ users \ chiruld \ appdata \ local \ programs \ python \ python35 \ lib \ setuptools \ dist.py",第103行 除了ValueError,e: ^ SyntaxError:语法无效
答案 0 :(得分:0)
如果您使用的是Windows ..,请尝试右击“cmd.exe”'并选择以管理员身份运行'然后点击'是'允许以下程序对此计算机进行更改。