flaskの環境構築をしたいのですがネットを見てもなかなか理解できずに立ち止まってしまっています
どなたか教えてください!!m(_ _)m
・僕のコンピュターの情報
MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports)
・コマンドを実行して出てきたやつら
python --version
Python 2.7.10
・やってはみたこと
flaskはpython3.4以上だとデフォルトでついてるらしいので、pythonを最新にしようとして、pythonのホームページに行ってダウンロードを押してみました。
pipコマンドってのが必要らしいんですが、どこ調べても解決できませんでした。
easy_install pipを実行すると以下のエラーが出ました。
[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-5909.pth'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/Library/Python/2.7/site-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://pythonhosted.org/setuptools/easy_install.html
Please make the appropriate changes for your system and try again.
●sudoはちゃんと実行されたみたいなんですが、easy_install pipを実行しても結果は変わりませんでした。
●あと、回答してくださったpython3をダウンロードするサイトをみて、公式サイトからpython3.6.7をダウンロードして、インストールまでしたはずなんですけど、コマンドpython -Vをすると2,7から変わりません。
●次に、その下にあるHome-brewというやつを利用しようと思って、homebrewのホームページにある
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
をまず実行してみました。
次に、$ brew install pythonを実行したんですけど、-bash: $: command not foundと出てきて、先に進めないでいます。
●また、そのサイトに「homebrew-versionsを使用可能にします。」ありますが、なんのことかよくわかりません。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/05/04 12:51
2019/05/04 12:54
2019/05/04 12:58