Pythonではじめるテキストアナリティクス入門
code: zshrc
# jupyter-lab
export PATH=$PATH:/Users/wafuwafu13/Library/Python/3.8/bin
code: zsh
$ python3 -m venv /wafu/environment
objc1284: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1f986f458) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1061744f8). One of the two will be used. Which one is undefined. ...
Error: Errno 30 Read-only file system: '/wafu' code: zsh
~/desktop/sample
$ python3 -m venv env
~/desktop/sample
$ source env/bin/activate
(env) ~/desktop/sample
$ pip3 list
Package Version
---------- -------
pip 20.2.3
setuptools 49.2.1
WARNING: You are using pip version 20.2.3; however, version 22.1.2 is available.
You should consider upgrading via the '/Users/wafuwafu13/Desktop/sample/env/bin/python3 -m pip install --upgrade pip' command.
(env) ~/desktop/sample
$ deactivate
~/desktop/sample
$ pip3 list
Package Version Editable project location
-------------------- ----------- -------------------------------
anyio 3.6.1
appnope 0.1.3
argon2-cffi 21.3.0
code: zsh
(env) ~/desktop/intro-text-analytics
$ pip install -U ginza ja_ginza
Successfully installed MarkupSafe-2.1.1 SudachiDict-core-20220519 SudachiPy-0.6.3 blis-0.7.7 catalogue-2.0.7 certifi-2022.5.18.1 charset-normalizer-2.0.12 click-8.0.4 cymem-2.0.6 ginza-5.1.1 idna-3.3 ja_ginza-5.1.0 jinja2-3.1.2 langcodes-3.3.0 murmurhash-1.0.7 numpy-1.22.4 packaging-21.3 pathy-0.6.1 plac-1.3.5 preshed-3.0.6 pydantic-1.8.2 pyparsing-3.0.9 requests-2.28.0 smart-open-5.2.1 spacy-3.2.4 spacy-legacy-3.0.9 spacy-loggers-1.0.2 srsly-2.4.3 thinc-8.0.17 tqdm-4.64.0 typer-0.4.1 typing-extensions-4.2.0 urllib3-1.26.9 wasabi-0.9.1
code: zsh
$ pip install oseti
$ pip install mecab-python3
Collecting mecab-python3
Using cached mecab-python3-1.0.5.tar.gz (77 kB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for mecab-python3, since package 'wheel' is not installed.
Installing collected packages: mecab-python3
Running setup.py install for mecab-python3 ... error
error: subprocess-exited-with-error
× Running setup.py install for mecab-python3 did not run successfully.
│ exit code: 1
WARNING: The wheel package is not available.
WARNING: The wheel package is not available.
running install
running build
running build_py
creating build
creating build/lib.macosx-10.14-arm64-3.8
creating build/lib.macosx-10.14-arm64-3.8/MeCab
copying src/MeCab/__init__.py -> build/lib.macosx-10.14-arm64-3.8/MeCab
copying src/MeCab/cli.py -> build/lib.macosx-10.14-arm64-3.8/MeCab
running build_ext
error: Errno 2 No such file or directory: 'mecab-config' note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> mecab-python3
code: zsh
brew install mecab
brew install mecab-ipadic