LoginSignup
1
1

More than 3 years have passed since last update.

zshでタブ補完したときの(eval):1: command not found:を解消

Last updated at Posted at 2020-04-22

はじまり

最近windows作業が多く、久しぶりにmacに戻って来てpip叩いてみると以下のように怒られた。

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

ちなみにpyenv環境でpython3.7.2
ググっても根本的な解決方法は出てこなく、他バージョン入れ直すのが有効らしいので3.7.7を入れ直す。モヤモヤするがしょうがない。思考停止
以降のためにパッケージ一覧をrequirements.txtで吐き出しておく。

$ pip freeze > requirements.txt
$ pyenv install 3.7.7
$ pyenv global 3.7.7
$ pip install -r ./

とここまで打ったのは良かったが、タブ補完で突如バグる

$ pip install -r (eval):1: command not found:_pip

ググると皆さんはpipじゃなくてmv案件らしい。
なんでワイだけpip案件なんや、、、

おわり

ググってみると、zshのautocompleteが悪さをしていそう。
関係ありそうなファイル消して再起動すればなんとかなるそうなので、思考停止して以下を消去

rm ~/.zcompdump
rm ~/.zplug/zcompdump

所感

Macがデフォルトシェルをzshに変更したから起こった問題だと思います!(偏見
昔からのzshユーザが困っています!(偏見

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1