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

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

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

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

pip

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

Q&A

解決済

3回答

3151閲覧

【Python】GiNZAのpipコマンドでのインストールがうまくいかない。

SmaSTATION

総合スコア29

Python

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

pip

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

0グッド

0クリップ

投稿2023/09/23 00:45

実現したいこと

コマンドプロンプトにて、[pip install -U ginza ja_ginza]を実行してインストールしたいです。

前提

pip自体のアップデートのエラーは解決することができたのですが、上記のコマンドが通りません。

発生している問題・エラーメッセージ

PS D:\selfpy> pip install -U ginza ja_ginza Collecting ginza Using cached ginza-5.1.2-py3-none-any.whl (20 kB) Collecting ja_ginza Using cached ja_ginza-5.1.2-py3-none-any.whl (59.1 MB) Collecting spacy<3.5.0,>=3.2.0 (from ginza) Using cached spacy-3.4.4.tar.gz (1.2 MB) Installing build dependencies ... error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [131 lines of output] Collecting setuptools Obtaining dependency information for setuptools from https://files.pythonhosted.org/packages/bb/26/7945080113158354380a12ce26873dd6c1ebd88d47f5bc24e2c5bb38c16a/setuptools-68.2.2-py3-none-any.whl.metadata Downloading setuptools-68.2.2-py3-none-any.whl.metadata (6.3 kB) Collecting cython<3.0,>=0.25 Obtaining dependency information for cython<3.0,>=0.25 from https://files.pythonhosted.org/packages/3f/d6/9eed523aeaca42acbaa3e6d3850edae780dc7f8da9df1bf6a2ceb851839c/Cython-0.29.36-py2.py3-none-any.whl.metadata Downloading Cython-0.29.36-py2.py3-none-any.whl.metadata (3.1 kB) Collecting cymem<2.1.0,>=2.0.2 Using cached cymem-2.0.8.tar.gz (9.8 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting preshed<3.1.0,>=3.0.2 Using cached preshed-3.0.9.tar.gz (14 kB) Installing build dependencies: started Installing build dependencies: finished with status 'error' error: subprocess-exited-with-error pip subprocess to install build dependencies did not run successfully. exit code: 1 [94 lines of output] Collecting setuptools Obtaining dependency information for setuptools from https://files.pythonhosted.org/packages/bb/26/7945080113158354380a12ce26873dd6c1ebd88d47f5bc24e2c5bb38c16a/setuptools-68.2.2-py3-none-any.whl.metadata Using cached setuptools-68.2.2-py3-none-any.whl.metadata (6.3 kB) Collecting cython>=0.28 Obtaining dependency information for cython>=0.28 from https://files.pythonhosted.org/packages/61/a7/e4da043398dab5cefa53f77499700bd82e04f78a021e45c6148f8ffc62a6/Cython-3.0.2-cp38-cp38-win32.whl.metadata Using cached Cython-3.0.2-cp38-cp38-win32.whl.metadata (3.2 kB) Collecting cymem<2.1.0,>=2.0.2 Using cached cymem-2.0.8.tar.gz (9.8 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting murmurhash<1.1.0,>=0.28.0 Using cached murmurhash-1.0.10.tar.gz (12 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Using cached setuptools-68.2.2-py3-none-any.whl (807 kB) Using cached Cython-3.0.2-cp38-cp38-win32.whl (2.6 MB) Building wheels for collected packages: cymem, murmurhash Building wheel for cymem (pyproject.toml): started Building wheel for cymem (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error Building wheel for cymem (pyproject.toml) did not run successfully. exit code: 1 [17 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win32-cpython-38 creating build\lib.win32-cpython-38\cymem copying cymem\about.py -> build\lib.win32-cpython-38\cymem copying cymem\__init__.py -> build\lib.win32-cpython-38\cymem creating build\lib.win32-cpython-38\cymem\tests copying cymem\tests\test_import.py -> build\lib.win32-cpython-38\cymem\tests copying cymem\tests\__init__.py -> build\lib.win32-cpython-38\cymem\tests copying cymem\cymem.pyx -> build\lib.win32-cpython-38\cymem copying cymem\cymem.pxd -> build\lib.win32-cpython-38\cymem copying cymem\__init__.pxd -> build\lib.win32-cpython-38\cymem running build_ext building 'cymem.cymem' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cymem Building wheel for murmurhash (pyproject.toml): started Building wheel for murmurhash (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error Building wheel for murmurhash (pyproject.toml) did not run successfully. exit code: 1 [22 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win32-cpython-38 creating build\lib.win32-cpython-38\murmurhash copying murmurhash\about.py -> build\lib.win32-cpython-38\murmurhash copying murmurhash\__init__.py -> build\lib.win32-cpython-38\murmurhash creating build\lib.win32-cpython-38\murmurhash\tests copying murmurhash\tests\test_hash.py -> build\lib.win32-cpython-38\murmurhash\tests copying murmurhash\tests\test_import.py -> build\lib.win32-cpython-38\murmurhash\tests copying murmurhash\tests\__init__.py -> build\lib.win32-cpython-38\murmurhash\tests copying murmurhash\mrmr.pyx -> build\lib.win32-cpython-38\murmurhash copying murmurhash\mrmr.pxd -> build\lib.win32-cpython-38\murmurhash copying murmurhash\__init__.pxd -> build\lib.win32-cpython-38\murmurhash creating build\lib.win32-cpython-38\murmurhash\include creating build\lib.win32-cpython-38\murmurhash\include\murmurhash copying murmurhash\include\murmurhash\MurmurHash2.h -> build\lib.win32-cpython-38\murmurhash\include\murmurhash copying murmurhash\include\murmurhash\MurmurHash3.h -> build\lib.win32-cpython-38\murmurhash\include\murmurhash running build_ext building 'murmurhash.mrmr' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for murmurhash Failed to build cymem murmurhash ERROR: Could not build wheels for cymem, murmurhash, which is required to install pyproject.toml-based projects [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error pip subprocess to install build dependencies did not run successfully. exit code: 1 See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.

試したこと

  • pip自体のアップデート
  • pipをpip3に書き換えて実行➡うまくいかず...

補足情報(FW/ツールのバージョンなど)

ご教授いただけたら幸いです。
参考にさせていただいているページを添付させていただきました。
参考ページ(PythonとGiNZAで係り受け分析をしよう!)

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

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

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

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

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

guest

回答3

2

エラーメッセージに

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

と書かれてますよね?

Windows上のpythonにインストールしようとしているならば、
https://visualstudio.microsoft.com/visual-cpp-build-tools/
から
Microsoft C++ Build Tools の最新版をダウンロードしてインストールしてみて下さい。
具体的なインストール方法はご自分で検索してください。

(この手のエラーは環境要因が絡んでいることが多いので、なるべく環境を明記してください。OS、pythonのバージョン、ローカルのpythonかJupyter Notebook上でインストール使用しているのか、など)

投稿2023/09/23 01:07

編集2023/09/23 01:16
退会済みユーザー

退会済みユーザー

総合スコア0

SmaSTATION, TakaiY👍を押しています

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

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

SmaSTATION

2023/09/23 04:48

ご指摘ありがとうございます。 私の実行環境は、以下の通りです。 ・Visual Studio Code ・Windows ・Python 3.8.3 になっております。
guest

1

spaCy のインストレーションのページに

https://spacy.io/usage/#installation

spaCy is compatible with 64-bit CPython 3.6+ and runs on Unix/Linux, macOS/OS X and Windows. The latest spaCy releases are available over pip and conda.

と書いてあります。
64ビット版のPythonを使いましょう。

投稿2023/09/23 02:57

編集2023/09/23 02:58
quickquip

総合スコア11299

SmaSTATION👍を押しています

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

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

0

自己解決

ご回答いただいた方、誠にありがとうございました。
結果として、「Googleコラボ」を利用して実行することにしました。
また機会がありましたら、引き続きよろしくお願い致します。

投稿2023/09/23 05:31

SmaSTATION

総合スコア29

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.31%

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

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

質問する

関連した質問