LoginSignup
0
0

More than 3 years have passed since last update.

Masoniteで[FileNotFoundError]が出るときの対処法

Last updated at Posted at 2019-10-26

Masoniteでcraft installが実行できない

craft installで下記エラーが出る


[FileNotFoundError]
  [Errno 2] No such file or directory: 'pip3': 'pip3'

TL;DR

pipのVersionあげましょう

環境

+ Windows10
+ Power Shell
+ Python3.7
+ pip19.0.3

解決までの経緯

craft newで各ファイル生成後,ディレクトリを移動しcraft installでコケる

  • masonite-cliのインストールが失敗しているなら,そもそもcraft newも失敗するはずだが成功している

  • windows環境なのでpython2.7はプリインストールされていないのでPythonのVersionに起因するものでは無さそう?

公式ドキュメントの Known Installation Issues には

  • masonite-cliの再インストール

  • pip installじゃなくてpip3 installでやってみて

とかそこらへん

2番目の策で思いついてダメ元でpipをアップグレードしてみる

$ python -m pip install --upgrade pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 5.1MB/s
Installing collected packages: pip
  Found existing installation: pip 19.0.3
    Uninstalling pip-19.0.3:
      Successfully uninstalled pip-19.0.3
Successfully installed pip-19.3.1

pipのバージョンが19.0.3 → 19.3.1 に上がる

その後, craft install でインストールできた

Welcome To Masonite 2.2 - Google Chrome 2019_10_26 23_14_25 (2).png

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