我正在尝试在 python 3.5 中下载几个包,但 pip 不断抛出异常(通过 pip install pyzmail),请参见下文:
我该如何克服这个问题?
例外:回溯(最近一次调用最后一次):文件“c:\users\chiruld\appdata\local\programs\python\python35\lib\pip\basecommand.py”,第 122 行,主要状态 = self.run(options , args) 文件“c:\users\chiruld\appdata\local\programs\python\python35\lib\pip\commands\install.py”,第 278 行,在运行 requirements_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() 文件“c:\users \chiruld\appdata\local\programs\python\python35\lib\pip\req.py",第 292 行,在 run_egg_info logger.notify('Running setup.py (path:%s) egg_info for package %s' % ( self.setup_py,self.name))文件“c:\users\chiruld\appdata\local\programs\python\python35\lib\pip\req.py”,第 265 行,在 setup_py 导入 setuptools 文件“c:\users\chiruld\appdata\local\programs\python\python35\ lib\setuptools__init__.py”,第 2 行,从 setuptools.extension 导入扩展,库文件“c:\users\chiruld\appdata\local\programs\python\python35\lib\setuptools\extension.py”,第 5 行,从 setuptools.dist 导入 _get_unpatched 文件“c:\users\chiruld\appdata\local\programs\python\python35\lib\setuptools\dist.py”,第 103 行,除了 ValueError,e: ^ SyntaxError: invalid syntax从 setuptools.extension 导入扩展,库文件“c:\users\chiruld\appdata\local\programs\python\python35\lib\setuptools\extension.py”,第 5 行,从 setuptools.dist 导入 _get_unpatched 文件“c :\users\chiruld\appdata\local\programs\python\python35\lib\setuptools\dist.py",第 103 行,除了 ValueError,e: ^ SyntaxError: invalid syntax从 setuptools.extension 导入扩展,库文件“c:\users\chiruld\appdata\local\programs\python\python35\lib\setuptools\extension.py”,第 5 行,从 setuptools.dist 导入 _get_unpatched 文件“c :\users\chiruld\appdata\local\programs\python\python35\lib\setuptools\dist.py",第 103 行,除了 ValueError,e: ^ SyntaxError: invalid syntax