質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

pip

pipとは、Pythonを用いて書かれているパッケージソフトのインストールや管理を行うためのパッケージマネジメントシステムです。pipを使う主なメリットは、コマンドラインインターフェースにて容易にPythonパッケージソフトをインストール可能だという点です。

Q&A

解決済

1回答

7606閲覧

pip install が実行できない

glass1

総合スコア10

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

pip

pipとは、Pythonを用いて書かれているパッケージソフトのインストールや管理を行うためのパッケージマネジメントシステムです。pipを使う主なメリットは、コマンドラインインターフェースにて容易にPythonパッケージソフトをインストール可能だという点です。

0グッド

1クリップ

投稿2015/10/27 06:21

Macを使っていますが、pip installができません。

pip install neo4jrestclient と実行すると下記エラーになります。

Collecting neo4jrestclient Using cached neo4jrestclient-2.1.0.tar.gz Requirement already satisfied (use --upgrade to upgrade): requests>=2.1.0 in /Users/---/Library/Python/2.7/lib/python/site-packages (from neo4jrestclient) Installing collected packages: neo4jrestclient Running setup.py install for neo4jrestclient Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/61/gp96dtj52d95ndcwd95_g4840000gn/T/pip-build-b4_jKu/neo4jrestclient/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/61/gp96dtj52d95ndcwd95_g4840000gn/T/pip-xKBGFj-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib creating build/lib/neo4jrestclient copying neo4jrestclient/__init__.py -> build/lib/neo4jrestclient copying neo4jrestclient/client.py -> build/lib/neo4jrestclient copying neo4jrestclient/constants.py -> build/lib/neo4jrestclient copying neo4jrestclient/exceptions.py -> build/lib/neo4jrestclient copying neo4jrestclient/iterable.py -> build/lib/neo4jrestclient copying neo4jrestclient/labels.py -> build/lib/neo4jrestclient copying neo4jrestclient/options.py -> build/lib/neo4jrestclient copying neo4jrestclient/query.py -> build/lib/neo4jrestclient copying neo4jrestclient/request.py -> build/lib/neo4jrestclient copying neo4jrestclient/traversals.py -> build/lib/neo4jrestclient copying neo4jrestclient/utils.py -> build/lib/neo4jrestclient running egg_info writing requirements to neo4jrestclient.egg-info/requires.txt writing neo4jrestclient.egg-info/PKG-INFO writing top-level names to neo4jrestclient.egg-info/top_level.txt writing dependency_links to neo4jrestclient.egg-info/dependency_links.txt warning: manifest_maker: standard file '-c' not found reading manifest file 'neo4jrestclient.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'neo4jrestclient.egg-info/SOURCES.txt' creating build/lib/neo4jrestclient/tests copying neo4jrestclient/tests/__init__.py -> build/lib/neo4jrestclient/tests copying neo4jrestclient/tests/test_cache.py -> build/lib/neo4jrestclient/tests copying neo4jrestclient/tests/test_exceptions.py -> build/lib/neo4jrestclient/tests copying neo4jrestclient/tests/test_extensions.py -> build/lib/neo4jrestclient/tests copying neo4jrestclient/tests/test_filters.py -> build/lib/neo4jrestclient/tests copying neo4jrestclient/tests/test_graphdatabase.py -> build/lib/neo4jrestclient/tests copying neo4jrestclient/tests/test_indices.py -> build/lib/neo4jrestclient/tests copying neo4jrestclient/tests/test_ipython.py -> build/lib/neo4jrestclient/tests copying neo4jrestclient/tests/test_labels.py -> build/lib/neo4jrestclient/tests copying neo4jrestclient/tests/test_nodes.py -> build/lib/neo4jrestclient/tests copying neo4jrestclient/tests/test_pickle.py -> build/lib/neo4jrestclient/tests copying neo4jrestclient/tests/test_query.py -> build/lib/neo4jrestclient/tests copying neo4jrestclient/tests/test_relationships.py -> build/lib/neo4jrestclient/tests copying neo4jrestclient/tests/test_transactions.py -> build/lib/neo4jrestclient/tests copying neo4jrestclient/tests/test_traversals.py -> build/lib/neo4jrestclient/tests running install_lib creating /Library/Python/2.7/site-packages/neo4jrestclient error: could not create '/Library/Python/2.7/site-packages/neo4jrestclient': Permission denied ---------------------------------------- Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/61/gp96dtj52d95ndcwd95_g4840000gn/T/pip-build-b4_jKu/neo4jrestclient/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/61/gp96dtj52d95ndcwd95_g4840000gn/T/pip-xKBGFj-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/61/gp96dtj52d95ndcwd95_g4840000gn/T/pip-build-b4_jKu/neo4jrestclient

原因をご存知の方教えてくださると助かります。
よろしくお願いします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

以下がエラー原因ですね。
書き込み権限がないためです。

creating /Library/Python/2.7/site-packages/neo4jrestclient error: could not create '/Library/Python/2.7/site-packages/neo4jrestclient': Permission denied

次のように--userを指定するとインストールできると思います。
このときはインストール先が~/.localになります。

pip install neo4jrestclient --user

投稿2015/10/27 06:36

shiena

総合スコア1825

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

glass1

2015/10/27 07:04

回答ありがとうございます!! 教えてくださった通りに実行すると、無事にインストールすることができました。 初心者で行き詰まって困っていましたが、やっと次に進めそうです。 素早く、適確な回答ありがとうございました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問