2017-12-05 16 views
0

何年もの間、私はこれを見ていませんでした。私がpipインストールしようとすると、約/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

私のpythonパッケージの名前。私は自分のQを編集しました – Tommy

+2

あなたの 'setup.py'に誤りがあります。 –

答えて

1

コメントで述べたようにこれはあなたのsetup.pyで何か間違っています。エラーメッセージに基づいて、setup.pyスクリプトがll_plot実行ファイルにアクセスしようとしているようです。存在しないと言っているので、(setuptoolsを使用して)エントリポイントスクリプトを持っているか、またはsetup.pyまたは他のビルドスクリプトに関連するバイナリ実行ファイルにアクセスしようとしている可能性があります。

存在しない環境を使用しようとしていないことを確認する必要があるスクリプトでshebangをチェックしたいと思うでしょう。もちろん、これがパブリックパッケージ(またはそうでない場合)であれば、ビルドの前提条件を文書化し、パッケージを適切に構築するために環境をどのように設定する必要があるかを確認したいでしょう。

関連する問題