当我在64位python2.7的64位windows7上安装scrapy时,我发现"错误:无法找到vcvarsall.bat"通过安装visual studio 2008发生并解决了它。然而,它带来了以下新错误,似乎密码学无法定期编译。 我怎么处理这个? 提前谢谢。
=============================================== =========================
D:\Python27\Scripts\pip run on 04/18/14 17:02:02
Downloading/unpacking cryptography
Getting page https://pypi.python.org/simple/cryptography/
URLs to search for versions for cryptography:
* https://pypi.python.org/simple/cryptography/
Analyzing links from page https://pypi.python.org/simple/cryptography/
Skipping https://pypi.python.org/packages/cp26/c/cryptography/cryptography-0.2-cp26-none-win32.whl#md5=13e5c4b19520e7dc6f07c6502b3f74e2 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp26/c/cryptography/cryptography-0.2.1-cp26-none-win32.whl#md5=00e733648ee5cdb9e58876238b1328f8 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp26/c/cryptography/cryptography-0.2.2-cp26-none-win32.whl#md5=b52f9b5f5c980ebbe090f945a44be2a5 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp26/c/cryptography/cryptography-0.3-cp26-none-win32.whl#md5=53ce0ae7f46c71a1c0b16da9f1119c2a (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp27/c/cryptography/cryptography-0.2-cp27-none-win32.whl#md5=013ccafa6a5a3ea92c73f2c1c4879406 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp27/c/cryptography/cryptography-0.2.1-cp27-none-win32.whl#md5=127d6a5dc687250721f892d55720a06c (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp27/c/cryptography/cryptography-0.2.2-cp27-none-win32.whl#md5=7f3979da8340a7fe3aa859d3bfc1a5f1 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp27/c/cryptography/cryptography-0.3-cp27-none-win32.whl#md5=61d01b19a8161fdd95d2a01cf13a693b (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp32/c/cryptography/cryptography-0.2-cp32-none-win32.whl#md5=051424a36e91039807b72f112333ded3 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp32/c/cryptography/cryptography-0.2.1-cp32-none-win32.whl#md5=53f6f57db8e952d64283baaa14cbde3d (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp32/c/cryptography/cryptography-0.2.2-cp32-none-win32.whl#md5=bc30e6389e0f00cd8a6851683244c295 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp32/c/cryptography/cryptography-0.3-cp32-none-win32.whl#md5=3954c8ace2edf455aad6c562f1bbfd5b (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp33/c/cryptography/cryptography-0.2-cp33-none-win32.whl#md5=302812c1c1a035cf9ba3292f8dbf3f9e (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp33/c/cryptography/cryptography-0.2.1-cp33-none-win32.whl#md5=81acca90caf8a45f2ca73f3f9859fae4 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp33/c/cryptography/cryptography-0.2.2-cp33-none-win32.whl#md5=27eb7ffea5a17d6783e270cfe9775821 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp33/c/cryptography/cryptography-0.3-cp33-none-win32.whl#md5=20eec43894aadefc346b674d4eac1115 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cp34/c/cryptography/cryptography-0.3-cp34-none-win32.whl#md5=f9b13737d372f2fde4de33394a658419 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python
Found link https://pypi.python.org/packages/source/c/cryptography/cryptography-0.1.tar.gz#md5=bdc1c5fe069deca7467b71a0cc538f17 (from https://pypi.python.org/simple/cryptography/), version: 0.1
Found link https://pypi.python.org/packages/source/c/cryptography/cryptography-0.2.1.tar.gz#md5=872fc04268dadc66a0305ae5ab1c123b (from https://pypi.python.org/simple/cryptography/), version: 0.2.1
Found link https://pypi.python.org/packages/source/c/cryptography/cryptography-0.2.2.tar.gz#md5=f002a442c8c5c7463bf8d2f11f6c3128 (from https://pypi.python.org/simple/cryptography/), version: 0.2.2
Found link https://pypi.python.org/packages/source/c/cryptography/cryptography-0.2.tar.gz#md5=8a3d21e837a21e1b7634ee1f22b06bb6 (from https://pypi.python.org/simple/cryptography/), version: 0.2
Found link https://pypi.python.org/packages/source/c/cryptography/cryptography-0.3.tar.gz#md5=1a9f2520acfef9489ac42fdc9a7be441 (from https://pypi.python.org/simple/cryptography/), version: 0.3
Using version 0.3 (newest of versions: 0.3, 0.2.2, 0.2.1, 0.2, 0.1)
Downloading from URL https://pypi.python.org/packages/source/c/cryptography/cryptography-0.3.tar.gz#md5=1a9f2520acfef9489ac42fdc9a7be441 (from https://pypi.python.org/simple/cryptography/)
Running setup.py (path:c:\users\user\appdata\local\temp\pip_build_user\cryptography\setup.py) egg_info for package cryptography
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "c:\users\user\appdata\local\temp\pip_build_user\cryptography\setup.py", line 156, in <module>
"test": PyTest,
File "D:\Python27\lib\distutils\core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "D:\Python27\lib\site-packages\setuptools\dist.py", line 239, in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "D:\Python27\lib\site-packages\setuptools\dist.py", line 264, in fetch_build_eggs
replace_conflicting=True
File "D:\Python27\lib\site-packages\pkg_resources.py", line 620, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "D:\Python27\lib\site-packages\pkg_resources.py", line 858, in best_match
return self.obtain(req, installer) # try and download/install
File "D:\Python27\lib\site-packages\pkg_resources.py", line 870, in obtain
return installer(requirement)
File "D:\Python27\lib\site-packages\setuptools\dist.py", line 314, in fetch_build_egg
return cmd.easy_install(req)
File "D:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 593, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "D:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 623, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "D:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 811, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "D:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1017, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "D:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1002, in run_setup
run_setup(setup_script, args)
File "D:\Python27\lib\site-packages\setuptools\sandbox.py", line 50, in run_setup
lambda: execfile(
File "D:\Python27\lib\site-packages\setuptools\sandbox.py", line 100, in run
return func()
File "D:\Python27\lib\site-packages\setuptools\sandbox.py", line 52, in <lambda>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 149, in <module>
tests_require=test_requirements,
File "D:\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "D:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "D:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "D:\Python27\lib\site-packages\setuptools\command\bdist_egg.py", line 157, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "D:\Python27\lib\site-packages\setuptools\command\bdist_egg.py", line 143, in call_command
self.run_command(cmdname)
File "D:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "D:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "D:\Python27\lib\site-packages\setuptools\command\install_lib.py", line 8, in run
self.build()
File "D:\Python27\lib\distutils\command\install_lib.py", line 111, in build
self.run_command('build_ext')
File "D:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "D:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "D:\Python27\lib\site-packages\setuptools\command\build_ext.py", line 49, in run
_build_ext.run(self)
File "D:\Python27\lib\distutils\command\build_ext.py", line 337, in run
self.build_extensions()
File "D:\Python27\lib\distutils\command\build_ext.py", line 446, in build_extensions
self.build_extension(ext)
File "D:\Python27\lib\site-packages\setuptools\command\build_ext.py", line 178, in build_extension
_build_ext.build_extension(self,ext)
File "D:\Python27\lib\distutils\command\build_ext.py", line 496, in build_extension
depends=ext.depends)
File "D:\Python27\lib\distutils\msvc9compiler.py", line 473, in compile
self.initialize()
File "D:\Python27\lib\distutils\msvc9compiler.py", line 383, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "D:\Python27\lib\distutils\msvc9compiler.py", line 299, in query_vcvarsall
raise ValueError(str(list(result.keys())))
ValueError: [u'path', u'include', u'lib']
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "c:\users\user\appdata\local\temp\pip_build_user\cryptography\setup.py", line 156, in <module>
"test": PyTest,
File "D:\Python27\lib\distutils\core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "D:\Python27\lib\site-packages\setuptools\dist.py", line 239, in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "D:\Python27\lib\site-packages\setuptools\dist.py", line 264, in fetch_build_eggs
replace_conflicting=True
File "D:\Python27\lib\site-packages\pkg_resources.py", line 620, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "D:\Python27\lib\site-packages\pkg_resources.py", line 858, in best_match
return self.obtain(req, installer) # try and download/install
File "D:\Python27\lib\site-packages\pkg_resources.py", line 870, in obtain
return installer(requirement)
File "D:\Python27\lib\site-packages\setuptools\dist.py", line 314, in fetch_build_egg
return cmd.easy_install(req)
File "D:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 593, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "D:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 623, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "D:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 811, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "D:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1017, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "D:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1002, in run_setup
run_setup(setup_script, args)
File "D:\Python27\lib\site-packages\setuptools\sandbox.py", line 50, in run_setup
lambda: execfile(
File "D:\Python27\lib\site-packages\setuptools\sandbox.py", line 100, in run
return func()
File "D:\Python27\lib\site-packages\setuptools\sandbox.py", line 52, in <lambda>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 149, in <module>
tests_require=test_requirements,
File "D:\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "D:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "D:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "D:\Python27\lib\site-packages\setuptools\command\bdist_egg.py", line 157, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "D:\Python27\lib\site-packages\setuptools\command\bdist_egg.py", line 143, in call_command
self.run_command(cmdname)
File "D:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "D:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "D:\Python27\lib\site-packages\setuptools\command\install_lib.py", line 8, in run
self.build()
File "D:\Python27\lib\distutils\command\install_lib.py", line 111, in build
self.run_command('build_ext')
File "D:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "D:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "D:\Python27\lib\site-packages\setuptools\command\build_ext.py", line 49, in run
_build_ext.run(self)
File "D:\Python27\lib\distutils\command\build_ext.py", line 337, in run
self.build_extensions()
File "D:\Python27\lib\distutils\command\build_ext.py", line 446, in build_extensions
self.build_extension(ext)
File "D:\Python27\lib\site-packages\setuptools\command\build_ext.py", line 178, in build_extension
_build_ext.build_extension(self,ext)
File "D:\Python27\lib\distutils\command\build_ext.py", line 496, in build_extension
depends=ext.depends)
File "D:\Python27\lib\distutils\msvc9compiler.py", line 473, in compile
self.initialize()
File "D:\Python27\lib\distutils\msvc9compiler.py", line 383, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "D:\Python27\lib\distutils\msvc9compiler.py", line 299, in query_vcvarsall
raise ValueError(str(list(result.keys())))
ValueError: [u'path', u'include', u'lib']
----------------------------------------
Cleaning up...
Removing temporary dir c:\users\user\appdata\local\temp\pip_build_user...
Command python setup.py egg_info failed with error code 1 in c:\users\user\appdata\local\temp\pip_build_user\cryptography
Exception information:
Traceback (most recent call last):
File "D:\Python27\lib\site-packages\pip\basecommand.py", line 122, in main
status = self.run(options, args)
File "D:\Python27\lib\site-packages\pip\commands\install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "D:\Python27\lib\site-packages\pip\req.py", line 1229, in prepare_files
req_to_install.run_egg_info()
File "D:\Python27\lib\site-packages\pip\req.py", line 325, in run_egg_info
command_desc='python setup.py egg_info')
File "D:\Python27\lib\site-packages\pip\util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in c:\users\user\appdata\local\temp\pip_build_user\cryptography