2016-07-03 4 views
0

나는 다음과 같은 모듈로 구성 requirements.txt 파일이 있습니다. 내 virtualenv를 비활성화하고 간단히 pip install MarkupSafe 또는 pip install SQLAlchemy-를 성공적으로 설치하면 성공적으로 설치됩니다.VIRTUALENV 오류 build_ext

나는 이것이 왜 그리울 까? 내가 제거하려고/virtualenv & 파이썬을 재설치 - 그리고 꽤 (그는 그것이 Windows 환경에 특정 일이라고 생각) 파이썬에 대해 knowledgable이며 안타깝게도 다음에 무엇을 시도로 손실에있는 친구와 통화했습니다.

나는 그것이 내가 사용자 아래에 '파이썬'라는 이름의 폴더를 삭제 한 사실과 함께 할 수있는 뭔가가있을 수 있다고 의심 \의 AppData .. 파이썬을 제거하고 깨끗한 상태에서 시작하는 나의 시도 ...에서

여기

Running setup.py clean for SQLAlchemy 
    Running setup.py bdist_wheel for markupsafe ... error 
    Complete output from command c:\test_oauth\venv\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\SEANBA~1\\AppData\\Local\\Temp\\pip-build-pvc5zlcc\\markupsafe\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\ 
r\n', '\n'), __file__, 'exec'))" bdist_wheel -d C:\Users\SEANBA~1\AppData\Local\Temp\tmpkf78v48_pip-wheel- --python-tag cp35: 
    running bdist_wheel 
    running build 
    running build_py 
    creating build 
    creating build\lib.win32-3.5 
    creating build\lib.win32-3.5\markupsafe 
    copying markupsafe\tests.py -> build\lib.win32-3.5\markupsafe 
    copying markupsafe\_compat.py -> build\lib.win32-3.5\markupsafe 
    copying markupsafe\_constants.py -> build\lib.win32-3.5\markupsafe 
    copying markupsafe\_native.py -> build\lib.win32-3.5\markupsafe 
    copying markupsafe\__init__.py -> build\lib.win32-3.5\markupsafe 
    running egg_info 
    writing dependency_links to MarkupSafe.egg-info\dependency_links.txt 
    writing MarkupSafe.egg-info\PKG-INFO 
    writing top-level names to MarkupSafe.egg-info\top_level.txt 
    warning: manifest_maker: standard file '-c' not found 

    reading manifest file 'MarkupSafe.egg-info\SOURCES.txt' 
    reading manifest template 'MANIFEST.in' 
    writing manifest file 'MarkupSafe.egg-info\SOURCES.txt' 
    copying markupsafe\_speedups.c -> build\lib.win32-3.5\markupsafe 
    running build_ext 
    building 'markupsafe._speedups' extension 
    Traceback (most recent call last): 
    File "<string>", line 1, in <module> 
    File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\markupsafe\setup.py", line 120, in <module> 
     try_building_extension() 
    File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\markupsafe\setup.py", line 99, in try_building_extension 
     run_setup(True) 
    File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\markupsafe\setup.py", line 93, in run_setup 
     ext_modules=ext_modules, 
    File "C:\Python35-32\Lib\distutils\core.py", line 148, in setup 
     dist.run_commands() 
    File "C:\Python35-32\Lib\distutils\dist.py", line 955, in run_commands 
     self.run_command(cmd) 
    File "C:\Python35-32\Lib\distutils\dist.py", line 974, in run_command 
     cmd_obj.run() 
    File "c:\test_oauth\venv\lib\site-packages\wheel\bdist_wheel.py", line 179, in run 
     self.run_command('build') 
    File "C:\Python35-32\Lib\distutils\cmd.py", line 313, in run_command 
     self.distribution.run_command(command) 
    File "C:\Python35-32\Lib\distutils\dist.py", line 974, in run_command 
     cmd_obj.run() 
    File "C:\Python35-32\Lib\distutils\command\build.py", line 135, in run 
     self.run_command(cmd_name) 
    File "C:\Python35-32\Lib\distutils\cmd.py", line 313, in run_command 
     self.distribution.run_command(command) 
    File "C:\Python35-32\Lib\distutils\dist.py", line 974, in run_command 
     cmd_obj.run() 
    File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\markupsafe\setup.py", line 41, in run 
     build_ext.run(self) 
    File "C:\Python35-32\Lib\distutils\command\build_ext.py", line 338, in run 
     self.build_extensions() 
    File "C:\Python35-32\Lib\distutils\command\build_ext.py", line 447, in build_extensions 
     self._build_extensions_serial() 
    File "C:\Python35-32\Lib\distutils\command\build_ext.py", line 472, in _build_extensions_serial 
     self.build_extension(ext) 
    File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\markupsafe\setup.py", line 47, in build_extension 
     build_ext.build_extension(self, ext) 
    File "C:\Python35-32\Lib\distutils\command\build_ext.py", line 532, in build_extension 
     depends=ext.depends) 
    File "C:\Python35-32\Lib\distutils\_msvccompiler.py", line 306, in compile 
     self.initialize() 
    File "C:\Python35-32\Lib\distutils\_msvccompiler.py", line 199, in initialize 
     vc_env = _get_vc_env(plat_spec) 
    File "c:\test_oauth\venv\lib\site-packages\setuptools\msvc.py", line 206, in msvc14_get_vc_env 
     return EnvironmentInfo(plat_spec, vc_ver_min=14.0).return_env() 
    TypeError: __init__() got an unexpected keyword argument 'vc_ver_min' 

    ---------------------------------------- 
    Failed building wheel for markupsafe 

는 관련 출력 (또는 적어도 내가 생각하는 것은 관련 부분 : 여기에 관련 출력 (또는 적어도 내가 생각하는 출력 관련 부분) MarkupSafe과 관련된입니다 결과는 SQLAlchemy 실패와 관련됩니다.

running build_ext 
    building 'sqlalchemy.cprocessors' extension 
    Traceback (most recent call last): 
    File "<string>", line 1, in <module> 
    File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\SQLAlchemy\setup.py", line 170, in <module> 
     run_setup(True) 
    File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\SQLAlchemy\setup.py", line 150, in run_setup 
     **kwargs 
    File "C:\Python35-32\Lib\distutils\core.py", line 148, in setup 
     dist.run_commands() 
    File "C:\Python35-32\Lib\distutils\dist.py", line 955, in run_commands 
     self.run_command(cmd) 
    File "C:\Python35-32\Lib\distutils\dist.py", line 974, in run_command 
     cmd_obj.run() 
    File "c:\test_oauth\venv\lib\site-packages\wheel\bdist_wheel.py", line 179, in run 
     self.run_command('build') 
    File "C:\Python35-32\Lib\distutils\cmd.py", line 313, in run_command 
     self.distribution.run_command(command) 
    File "C:\Python35-32\Lib\distutils\dist.py", line 974, in run_command 
     cmd_obj.run() 
    File "C:\Python35-32\Lib\distutils\command\build.py", line 135, in run 
     self.run_command(cmd_name) 
    File "C:\Python35-32\Lib\distutils\cmd.py", line 313, in run_command 
     self.distribution.run_command(command) 
    File "C:\Python35-32\Lib\distutils\dist.py", line 974, in run_command 
     cmd_obj.run() 
    File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\SQLAlchemy\setup.py", line 67, in run 
     build_ext.run(self) 
    File "C:\Python35-32\Lib\distutils\command\build_ext.py", line 338, in run 
     self.build_extensions() 
    File "C:\Python35-32\Lib\distutils\command\build_ext.py", line 447, in build_extensions 
     self._build_extensions_serial() 
    File "C:\Python35-32\Lib\distutils\command\build_ext.py", line 472, in _build_extensions_serial 
     self.build_extension(ext) 
    File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\SQLAlchemy\setup.py", line 73, in build_extension 
     build_ext.build_extension(self, ext) 
    File "C:\Python35-32\Lib\distutils\command\build_ext.py", line 532, in build_extension 
     depends=ext.depends) 
    File "C:\Python35-32\Lib\distutils\_msvccompiler.py", line 306, in compile 
     self.initialize() 
    File "C:\Python35-32\Lib\distutils\_msvccompiler.py", line 199, in initialize 
     vc_env = _get_vc_env(plat_spec) 
    File "c:\test_oauth\venv\lib\site-packages\setuptools\msvc.py", line 206, in msvc14_get_vc_env 
     return EnvironmentInfo(plat_spec, vc_ver_min=14.0).return_env() 
    TypeError: __init__() got an unexpected keyword argument 'vc_ver_min' 

    ---------------------------------------- 
    Failed building wheel for SQLAlchemy 
+0

어둠 속에서 방금 찍은 것 : venv python이 'pip install -r requirements.txt'가 작동하는 python과 동일한 비단뱀입니까? 에서처럼, 둘 다 3.5입니까? –

답변

0

문제점에 대한 해결책을 찾았습니다.

파이썬의 환경 변수가 잘못 구성되었습니다 (단순히 'path'시스템 변수에 추가되는 것이 아니라 자체 시스템 변수로 변경되었습니다).

변경되면 문제가 사라집니다.