python 2.7.6,pip 9.0.1,virtualenv 15.1.0,无python3,内存充足,报错如下:
C:\Users\Administrator>virtualenv scrapytest New python executable in C:\Users\Administrator\scrapytest\Scripts\python.exe Installing setuptools, pip, wheel... Complete output from command C:\Users\Administrat...t\Scripts\python.exe - set uptools pip wheel: Collecting setuptools Exception: Traceback (most recent call last): File "C:\Python27\Lib\site-packages\virtualenv_support\pip-9.0.1-py2.py3-none- any.whl\pip\basecommand.py", line 215, in main status = self.run(options, args) File "C:\Python27\Lib\site-packages\virtualenv_support\pip-9.0.1-py2.py3-none- any.whl\pip\commands\install.py", line 324, in run requirement_set.prepare_files(finder) File "C:\Python27\Lib\site-packages\virtualenv_support\pip-9.0.1-py2.py3-none- any.whl\pip\req\req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "C:\Python27\Lib\site-packages\virtualenv_support\pip-9.0.1-py2.py3-none- any.whl\pip\req\req_set.py", line 554, in _prepare_file require_hashes File "C:\Python27\Lib\site-packages\virtualenv_support\pip-9.0.1-py2.py3-none- any.whl\pip\req\req_install.py", line 278, in populate_link self.link = finder.find_requirement(self, upgrade) File "C:\Python27\Lib\site-packages\virtualenv_support\pip-9.0.1-py2.py3-none- any.whl\pip\index.py", line 465, in find_requirement all_candidates = self.find_all_candidates(req.name) File "C:\Python27\Lib\site-packages\virtualenv_support\pip-9.0.1-py2.py3-none- any.whl\pip\index.py", line 386, in find_all_candidates self.find_links, expand_dir=True) File "C:\Python27\Lib\site-packages\virtualenv_support\pip-9.0.1-py2.py3-none- any.whl\pip\index.py", line 236, in _sort_locations sort_path(os.path.join(path, item)) File "C:\Python27\Lib\site-packages\virtualenv_support\pip-9.0.1-py2.py3-none- any.whl\pip\index.py", line 217, in sort_path if mimetypes.guess_type(url, strict=False)[0] == 'text/html': File "c:\python27\Lib\mimetypes.py", line 297, in guess_type init() File "c:\python27\Lib\mimetypes.py", line 358, in init db.read_windows_registry() File "c:\python27\Lib\mimetypes.py", line 258, in read_windows_registry for subkeyname in enum_types(hkcr): File "c:\python27\Lib\mimetypes.py", line 249, in enum_types ctype = ctype.encode(default_encoding) # omit in 3.x! UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1: ordinal not in range(128) ---------------------------------------- ...Installing setuptools, pip, wheel...done. Traceback (most recent call last): File "c:\python27\lib\runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "c:\python27\lib\runpy.py", line 72, in _run_code exec code in run_globals File "C:\Python27\Scripts\virtualenv.exe\__main__.py", line 9, in <module> File "C:\Python27\Lib\site-packages\virtualenv.py", line 713, in main symlink=options.symlink) File "C:\Python27\Lib\site-packages\virtualenv.py", line 945, in create_enviro nment download=download, File "C:\Python27\Lib\site-packages\virtualenv.py", line 901, in install_wheel call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT) File "C:\Python27\Lib\site-packages\virtualenv.py", line 797, in call_subproce ss % (cmd_desc, proc.returncode)) OSError: Command C:\Users\Administrat...t\Scripts\python.exe - setuptools pip wh eel failed with error code 2
相关分类