2017-12-05 6 views
0

몇 년 동안 나는 이것을 보지 못했습니다. 설치를 마치면 /private/var에 대해 불평합니다. 권한 문제입니까?pip가 작동하지 않습니다./private/var 경로 오류가 발생했습니다.

location-tools는 설치하려는 Python 패키지의 이름입니다. 나는 가상 환경에 있지만 그것과 똑같은 오류가 발생한다.

pip install .                                 1   master  
Processing /Users/tommy/Development/python-location-tools 
Building wheels for collected packages: location-tools 
    Running setup.py bdist_wheel for location-tools ... error 
    Complete output from command /usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/v9/c461bkzn6r3ctmvg91df94c80000gn/T/pip-ROZvTR-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/v9/c461bkzn6r3ctmvg91df94c80000gn/T/tmpm2DqL7pip-wheel- --python-tag cp27: 
    Requirement already satisfied: gmplot==1.2.0 in /usr/local/lib/python2.7/site-packages (from -r requirements.txt (line 1)) 
    Requirement already satisfied: requests in /usr/local/lib/python2.7/site-packages (from gmplot==1.2.0->-r requirements.txt (line 1)) 
    Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python2.7/site-packages (from requests->gmplot==1.2.0->-r requirements.txt (line 1)) 
    Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python2.7/site-packages (from requests->gmplot==1.2.0->-r requirements.txt (line 1)) 
    Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python2.7/site-packages (from requests->gmplot==1.2.0->-r requirements.txt (line 1)) 
    Requirement already satisfied: idna<2.6,>=2.5 in /usr/local/lib/python2.7/site-packages (from requests->gmplot==1.2.0->-r requirements.txt (line 1)) 
    running bdist_wheel 
    running build 
    running build_py 
    creating build 
    creating build/lib 
    creating build/lib/location_tools 
    copying location_tools/__init__.py -> build/lib/location_tools 
    copying location_tools/plotting.py -> build/lib/location_tools 
    running build_scripts 
    creating build/scripts-2.7 
    error: file '/private/var/folders/v9/c461bkzn6r3ctmvg91df94c80000gn/T/pip-ROZvTR-build/bin/ll_plot' does not exist 

    ---------------------------------------- 
    Failed building wheel for location-tools 
    Running setup.py clean for location-tools 
Failed to build location-tools 
Installing collected packages: location-tools 
    Running setup.py install for location-tools ... error 
    Complete output from command /usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/v9/c461bkzn6r3ctmvg91df94c80000gn/T/pip-ROZvTR-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/v9/c461bkzn6r3ctmvg91df94c80000gn/T/pip-bggTuL-record/install-record.txt --single-version-externally-managed --compile: 
    Requirement already satisfied: gmplot==1.2.0 in /usr/local/lib/python2.7/site-packages (from -r requirements.txt (line 1)) 
    Requirement already satisfied: requests in /usr/local/lib/python2.7/site-packages (from gmplot==1.2.0->-r requirements.txt (line 1)) 
    Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python2.7/site-packages (from requests->gmplot==1.2.0->-r requirements.txt (line 1)) 
    Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python2.7/site-packages (from requests->gmplot==1.2.0->-r requirements.txt (line 1)) 
    Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python2.7/site-packages (from requests->gmplot==1.2.0->-r requirements.txt (line 1)) 
    Requirement already satisfied: idna<2.6,>=2.5 in /usr/local/lib/python2.7/site-packages (from requests->gmplot==1.2.0->-r requirements.txt (line 1)) 
    running install 
    running build 
    running build_py 
    creating build 
    creating build/lib 
    creating build/lib/location_tools 
    copying location_tools/__init__.py -> build/lib/location_tools 
    copying location_tools/plotting.py -> build/lib/location_tools 
    running build_scripts 
    creating build/scripts-2.7 
    error: file '/private/var/folders/v9/c461bkzn6r3ctmvg91df94c80000gn/T/pip-ROZvTR-build/bin/ll_plot' does not exist 

    ---------------------------------------- 
Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/v9/c461bkzn6r3ctmvg91df94c80000gn/T/pip-ROZvTR-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/v9/c461bkzn6r3ctmvg91df94c80000gn/T/pip-bggTuL-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/v9/c461bkzn6r3ctmvg91df94c80000gn/T/pip-ROZvT 
+0

문맥을주세요. '위치 도구 '란 무엇입니까? –

+0

내 파이썬 패키지의 이름. 나는 내 Q를 편집했다 – Tommy

+2

'setup.py'에 결함이있는 것 같습니다. –

답변

1

의견에서 언급했듯이 이것은 귀하의 setup.py에 잘못되었습니다. 오류 메시지에 따르면 스크립트가 ll_plot 실행 파일에 액세스하려고 시도하는 것으로 보입니다. 존재하지 않는다고 말하기 때문에 (setuptools를 통해) 진입 점 스크립트가 있거나 setup.py 또는 다른 빌드 스크립트와 관련하여 실행 파일에 액세스하려고 할 가능성이 큽니다.

존재하지 않는 환경을 사용하려고하지 않는 스크립트에서 shebang을 확인하고 싶을 것입니다. 물론 이것이 공개 패키지 (또는 그렇지 않은 경우) 인 경우 빌드 전제 조건을 문서화하고 패키지를 올바르게 빌드하기 위해 환경을 구성해야하는 방법을 확인해야합니다.