LoginSignup
2
1

More than 5 years have passed since last update.

python setup.py install後のconsole_scriptでpkg_resources.DistributionNotFound: The '{package_name}=={version}' distribution was not found and is required by the application

Last updated at Posted at 2017-11-20
  • pyenvを使用している時にこのエラーに遭遇することがある。
    • その場合は、以下の対応で対処することができる。
      /usr/local/bin/{console_script_name}のシェバンを #!/usr/bin/pythonから#!/home/{user_name}/.pyenv/shims/pythonに変更
    • もしくは、次のコマンドを実行することでも解決する。
      mv /usr/bin/python /usr/bin/python.bak
      ln -s /home/miyagaw61/.pyenv/shims/python /usr/bin/python
2
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
2
1