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

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

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

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

Python

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

pip

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

Q&A

解決済

1回答

2053閲覧

py3 discord-ext-levenshtein インストールできない

sibainu

総合スコア30

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

Python

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

pip

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

0グッド

0クリップ

投稿2021/10/05 11:35

discord-ext-levenshteinをインストールしたい

pipより

pip

1py -3.9 -m pip install --upgrade discord-ext-levenshtein

を実行しましたが

Collecting discord-ext-levenshtein Using cached discord_ext_levenshtein-0.3.0-py3-none-any.whl (4.9 kB) Collecting python-Levenshtein Using cached python-Levenshtein-0.12.2.tar.gz (50 kB) Requirement already satisfied: discord.py in c:\users\waon-pc\appdata\local\programs\python\python39-32\lib\site-packages (from discord-ext-levenshtein) (2.0.0a3453+g58ca9e99) Requirement already satisfied: aiohttp<3.8.0,>=3.6.0 in c:\users\waon-pc\appdata\local\programs\python\python39-32\lib\site-packages (from discord.py->discord-ext-levenshtein) (3.7.4.post0) Requirement already satisfied: multidict<7.0,>=4.5 in c:\users\waon-pc\appdata\local\programs\python\python39-32\lib\site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py->discord-ext-levenshtein) (5.1.0) Requirement already satisfied: typing-extensions>=3.6.5 in c:\users\waon-pc\appdata\local\programs\python\python39-32\lib\site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py->discord-ext-levenshtein) (3.10.0.0) Requirement already satisfied: attrs>=17.3.0 in c:\users\waon-pc\appdata\local\programs\python\python39-32\lib\site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py->discord-ext-levenshtein) (21.2.0) Requirement already satisfied: chardet<5.0,>=2.0 in c:\users\waon-pc\appdata\local\programs\python\python39-32\lib\site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py->discord-ext-levenshtein) (4.0.0) Requirement already satisfied: async-timeout<4.0,>=3.0 in c:\users\waon-pc\appdata\local\programs\python\python39-32\lib\site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py->discord-ext-levenshtein) (3.0.1) Requirement already satisfied: yarl<2.0,>=1.0 in c:\users\waon-pc\appdata\local\programs\python\python39-32\lib\site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py->discord-ext-levenshtein) (1.6.3) Requirement already satisfied: idna>=2.0 in c:\users\waon-pc\appdata\local\programs\python\python39-32\lib\site-packages (from yarl<2.0,>=1.0->aiohttp<3.8.0,>=3.6.0->discord.py->discord-ext-levenshtein) (2.10) Requirement already satisfied: setuptools in c:\users\waon-pc\appdata\local\programs\python\python39-32\lib\site-packages (from python-Levenshtein->discord-ext-levenshtein) (58.2.0) Using legacy 'setup.py install' for python-Levenshtein, since package 'wheel' is not installed. Installing collected packages: python-Levenshtein, discord-ext-levenshtein Running setup.py install for python-Levenshtein ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\waon-pc\AppData\Local\Programs\Python\Python39-32\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\waon-pc\AppData\Local\Temp\pip-install-042m3uu6\python-levenshtein_5e511bdd4be0428facbf946547ceae3b\setup.py'"'"'; __file__='"'"'C:\Users\waon-pc\AppData\Local\Temp\pip-install-042m3uu6\python-levenshtein_5e511bdd4be0428facbf946547ceae3b\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\waon-pc\AppData\Local\Temp\pip-record-hso279sv\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\waon-pc\AppData\Local\Programs\Python\Python39-32\Include\python-Levenshtein' cwd: C:\Users\waon-pc\AppData\Local\Temp\pip-install-042m3uu6\python-levenshtein_5e511bdd4be0428facbf946547ceae3b\ Complete output (28 lines): running install running build running build_py creating build creating build\lib.win32-3.9 creating build\lib.win32-3.9\Levenshtein copying Levenshtein\StringMatcher.py -> build\lib.win32-3.9\Levenshtein copying Levenshtein\__init__.py -> build\lib.win32-3.9\Levenshtein running egg_info writing python_Levenshtein.egg-info\PKG-INFO writing dependency_links to python_Levenshtein.egg-info\dependency_links.txt writing entry points to python_Levenshtein.egg-info\entry_points.txt writing namespace_packages to python_Levenshtein.egg-info\namespace_packages.txt writing requirements to python_Levenshtein.egg-info\requires.txt writing top-level names to python_Levenshtein.egg-info\top_level.txt reading manifest file 'python_Levenshtein.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*pyc' found anywhere in distribution warning: no previously-included files matching '*so' found anywhere in distribution warning: no previously-included files matching '.project' found anywhere in distribution warning: no previously-included files matching '.pydevproject' found anywhere in distribution adding license file 'COPYING' writing manifest file 'python_Levenshtein.egg-info\SOURCES.txt' copying Levenshtein\_levenshtein.c -> build\lib.win32-3.9\Levenshtein copying Levenshtein\_levenshtein.h -> build\lib.win32-3.9\Levenshtein running build_ext building 'Levenshtein._levenshtein' 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/ ---------------------------------------- ERROR: Command errored out with exit status 1: 'C:\Users\waon-pc\AppData\Local\Programs\Python\Python39-32\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\waon-pc\AppData\Local\Temp\pip-install-042m3uu6\python-levenshtein_5e511bdd4be0428facbf946547ceae3b\setup.py'"'"'; __file__='"'"'C:\Users\waon-pc\AppData\Local\Temp\pip-install-042m3uu6\python-levenshtein_5e511bdd4be0428facbf946547ceae3b\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\waon-pc\AppData\Local\Temp\pip-record-hso279sv\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\waon-pc\AppData\Local\Programs\Python\Python39-32\Include\python-Levenshtein' Check the logs for full command output.

というエラーが出ます。
色々調べましたが、このライブラリ事態の情報が少ないのでよく分かりませんでした。

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

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

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

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

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

guest

回答1

0

ベストアンサー

error: Microsoft Visual C++ 14.0 or greater is required.

と書いてありますから、コンパイラを最新のものにアップグレードしましょう。

投稿2021/10/05 12:37

ppaul

総合スコア24666

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

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

sibainu

2021/10/06 07:22

回答ありがとうございます。 無事にインストールできました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.47%

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

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

質問する

関連した質問