0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

チラシの裏: Mac HomeBrewでなんかおかしくなってIntelliJ IDEAのremote script `idea` が動かなくなったのはpyenvのrehashで直った

Posted at

T/O

  • エラーメッセージがfindのログで流れてしまって後の祭。
  • ~/.pyenv/shims/pyenv が、 /usr/local/Celler/pyenv/1.2.22/bin/pyenv を見つけられない、みたいなエラーメッセージだった。いや、あるし。なんでやねん。
  • でhelp見てみたら答が書いてあった。
pyenv --help
-> Usage: pyenv <command> [<args>]

Some useful pyenv commands are:
   --version   Display the version of pyenv
   commands    List all available pyenv commands
   exec        Run an executable with the selected Python version
   global      Set or show the global Python version(s)
   help        Display help for a command
   hooks       List hook scripts for a given pyenv command
   init        Configure the shell environment for pyenv
   install     Install a Python version using python-build
   local       Set or show the local application-specific Python version(s)
   prefix      Display prefix for a Python version
   **rehash      Rehash pyenv shims (run this after installing executables)**
   root        Display the root directory where versions and shims are kept
   shell       Set or show the shell-specific Python version
   shims       List existing pyenv shims
   uninstall   Uninstall a specific Python version
   version     Show the current Python version(s) and its origin
   version-file   Detect the file that sets the current pyenv version
   version-name   Show the current Python version
   version-origin   Explain how the current Python version is set
   versions    List all Python versions available to pyenv
   whence      List all Python versions that contain the given executable

やってみる

pyenv rehash
->
idea .
->

なおった。へぇーへぇー (2へぇ)

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?