2017-01-10 1 views
2

Windows에 Django CMS을 설치하려고합니다. 다음 단계를 사용하고 있습니다. 오류 다음djangocms : AttributeError : 'FileNotFoundError'객체에 'cmd'속성이 없습니다.

C:\Python34\Scripts\pip install djangocms-installer

E:\Projects\example>C:\Python34\Scripts\djangocms -p mysite mysite

그러나 던졌습니다 :

Creating the project 
Please wait while I install dependencies 


***************************************************************** 

Check documentation at https://djangocms-installer.readthedocs.io 

***************************************************************** 

Traceback (most recent call last): 
    File "c:\python34\lib\site-packages\djangocms_installer\install\__init__.py", 
line 95, in requirements 
    output = subprocess.check_output(['pip'] + args, stderr=subprocess.STDOUT) 
    File "c:\python34\lib\subprocess.py", line 607, in check_output 
    with Popen(*popenargs, stdout=PIPE, **kwargs) as process: 
    File "c:\python34\lib\subprocess.py", line 859, in __init__ 
    restore_signals, start_new_session) 
    File "c:\python34\lib\subprocess.py", line 1114, in _execute_child 
    startupinfo) 
FileNotFoundError: [WinError 2] The system cannot find the file specified 

During handling of the above exception, another exception occurred: 

Traceback (most recent call last): 
    File "c:\python34\lib\runpy.py", line 170, in _run_module_as_main 
    "__main__", mod_spec) 
    File "c:\python34\lib\runpy.py", line 85, in _run_code 
    exec(code, run_globals) 
    File "C:\Python34\Scripts\djangocms.exe\__main__.py", line 9, in <module> 
    File "c:\python34\lib\site-packages\djangocms_installer\main.py", line 33, in 
execute 
    verbose=config_data.verbose 
    File "c:\python34\lib\site-packages\djangocms_installer\install\__init__.py", 
line 98, in requirements 
    logger.error('cmd : %s :%s' % (e.cmd, e.output)) 
AttributeError: 'FileNotFoundError' object has no attribute 'cmd' 

나는 그것을 검색했지만 모든 솔루션을 얻을 수 없습니다. ,

set PATH=%PATH%;C:\Python34\Scripts 

을 언뜻 패키지가 매우 아니라고 소리 :

output = subprocess.check_output(['pip'] + args, stderr=subprocess.STDOUT) 

이 때문에 pip 실행 위치의 경로를 넣어 작동해야합니다

답변

2

근본 원인이 라인 Windows 환경에 적응 ... 두 번 예외는 아주 좋은 아니며, 어떤 경로도없이 pip 호출 문제가 될 수 있습니다.