質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

pip

pipとは、Pythonを用いて書かれているパッケージソフトのインストールや管理を行うためのパッケージマネジメントシステムです。pipを使う主なメリットは、コマンドラインインターフェースにて容易にPythonパッケージソフトをインストール可能だという点です。

Q&A

解決済

1回答

253閲覧

【Python】Homebrewでpython3.6.3をインストールしたがpip3がインストールされない

street

総合スコア34

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

pip

pipとは、Pythonを用いて書かれているパッケージソフトのインストールや管理を行うためのパッケージマネジメントシステムです。pipを使う主なメリットは、コマンドラインインターフェースにて容易にPythonパッケージソフトをインストール可能だという点です。

0グッド

0クリップ

投稿2017/11/24 10:17

編集2017/11/24 10:26

お世話になります。

TensorFlow導入に先立ち、
Homebrewを用いてpython3.6.3をインストールしましたがなぜかpip3がインストールされません。
pip3のインストール手順を調べたところapp-getを用いる事でインストールできる記載がありました。
しかしapp-getが入っているfinkをインストールしようとしましたがエラーとなりできませんでした。

■教えていただきたい事
Homebrewでpython3.6.3とpip3のインストールを成功させる方法
finkのエラー解消方法

環境およびエラー内容について記載致します。

【OS】
macOS High Sierra
Version 10.13.1

bash

1【バージョン、環境変数等】 2$ python -V 3Python 2.7.10 4$ python3 -V 5Python 3.6.3 6$ which python 7/usr/bin/python 8$ which python3 9/usr/local/bin/python3 10$ cat ~/.bash_profile 11export PATH=$PATH:$HOME/.nodebrew/current/bin 12export PATH=/usr/local/bin:$PATH 13$ cat ~/.zshrc 14export PATH=/usr/local/bin:/usr/local/share/python:$PATH 15$ which pip 16/usr/local/bin/pip 17$ ls /usr/local/bin/pip 18pip pip2 pip2.7

bash

1【finkインストールエラー】 2$ ./bootstrap 3 4Fink must be installed and run with superuser (root) privileges. Fink can 5automatically try to become root when it's run from a user account. Since 6you're currently running this script as a normal user, the method you choose 7will also be used immediately for this script. Available methods: 8 9(1) Use sudo 10(2) Use su 11(3) None, fink must be run as root 12 13Choose a method: [1] 1 14 15Password: 16Checking package... looks good (fink-0.41.1). 17Checking system... i386-apple-darwin17.2.0 18Use of uninitialized value $gcc in regexp compilation at /Users/username/Downloads/fink-0.41.1/perlmod/Fink/Services.pm line 1365. 19Use of uninitialized value $gcc in concatenation (.) or string at /Users/username/Downloads/fink-0.41.1/perlmod/Fink/Bootstrap.pm line 164. 20This system was not released at the time this Fink release was made. 21Prerelease versions of Mac OS X might work with Fink, but there are no 22guarantees. 23Distribution: 10.13 24Architecture: x86_64 25Checking cc... looks good. 26Checking make... looks good. 27Checking head... looks good. 28Verifying that installed Xcode Command Line Tools version is supported... 299.1.0.0.1.1508540944 is OK 30Verifying that installed Xcode app version is supported... 31Found Xcode version: 9.1 is OK. 32 33It looks like you already have Fink installed in /sw, trying /sw3 instead. 34 35WARNING: This is a non-standard location. 36 37Please choose the path where Fink should be installed. Note that you will 38normally be able to use a binary distribution only if you choose '/sw'. [/sw3] 39 40OK, installing into '/sw3'. 41 42Creating directories... 43/bin/mkdir -p -m755 /sw3 44Use of uninitialized value $selfupdatetrees in concatenation (.) or string at /Users/username/Downloads/fink-0.41.1/bootstrap line 635, <STDIN> line 1. 45Use of uninitialized value $selfupdatetrees in concatenation (.) or string at /Users/username/Downloads/fink-0.41.1/bootstrap line 635, <STDIN> line 1. 46Use of uninitialized value $selfupdatetrees in concatenation (.) or string at /Users/username/Downloads/fink-0.41.1/bootstrap line 635, <STDIN> line 1. 47Use of uninitialized value $selfupdatetrees in concatenation (.) or string at /Users/username/Downloads/fink-0.41.1/bootstrap line 637, <STDIN> line 1. 48Use of uninitialized value $selfupdatetrees in concatenation (.) or string at /Users/username/Downloads/fink-0.41.1/bootstrap line 637, <STDIN> line 1. 49Use of uninitialized value $selfupdatetrees in concatenation (.) or string at /Users/username/Downloads/fink-0.41.1/bootstrap line 637, <STDIN> line 1. 50Use of uninitialized value $selfupdatetrees in concatenation (.) or string at /Users/username/Downloads/fink-0.41.1/bootstrap line 637, <STDIN> line 1. 51Use of uninitialized value $selfupdatetrees in concatenation (.) or string at /Users/username/Downloads/fink-0.41.1/bootstrap line 637, <STDIN> line 1. 52Use of uninitialized value $selfupdatetrees in concatenation (.) or string at /Users/username/Downloads/fink-0.41.1/bootstrap line 637, <STDIN> line 1. 53/bin/mkdir -m755 /sw3/etc 54/bin/mkdir -m755 /sw3/etc/alternatives 55/bin/mkdir -m755 /sw3/etc/apt 56/bin/mkdir -m755 /sw3/src 57/bin/mkdir -m755 /sw3/fink 58/bin/mkdir -m755 /sw3/fink/debs 59/bin/mkdir -m755 /sw3/var 60/bin/mkdir -m755 /sw3/var/lib 61/bin/mkdir -m755 /sw3/var/lib/fink 62/bin/mkdir -m755 /sw3/fink//stable 63/bin/mkdir -m755 /sw3/fink//local 64/bin/mkdir -m755 /sw3/fink//local/main 65/bin/mkdir -m755 /sw3/fink//local/main/finkinfo 66/bin/mkdir -m755 /sw3/fink//local/main/binary-darwin-x86_64 67/bin/mkdir -m755 /sw3/fink//stable/main 68/bin/mkdir -m755 /sw3/fink//stable/main/finkinfo 69/bin/mkdir -m755 /sw3/fink//stable/main/binary-darwin-x86_64 70Use of uninitialized value $selfupdatetrees in concatenation (.) or string at /Users/username/Downloads/fink-0.41.1/bootstrap line 653, <STDIN> line 1. 71Use of uninitialized value $selfupdatetrees in concatenation (.) or string at /Users/username/Downloads/fink-0.41.1/bootstrap line 653, <STDIN> line 1. 72Use of uninitialized value $selfupdatetrees in concatenation (.) or string at /Users/username/Downloads/fink-0.41.1/bootstrap line 653, <STDIN> line 1. 73/usr/bin/sed -e "s,@ARV@,local," -e "s,@COMP@,main," -e "s,@ARCH@,x86_64," < Release > /sw3/fink//local/main/binary-darwin-x86_64/Release; /usr/bin/touch /sw3/fink//local/main/binary-darwin-x86_64/Packages; /usr/bin/gzip /sw3/fink//local/main/binary-darwin-x86_64/Packages 74Use of uninitialized value $selfupdatetrees in concatenation (.) or string at /Users/username/Downloads/fink-0.41.1/bootstrap line 653, <STDIN> line 1. 75Use of uninitialized value $selfupdatetrees in concatenation (.) or string at /Users/username/Downloads/fink-0.41.1/bootstrap line 653, <STDIN> line 1. 76Use of uninitialized value $selfupdatetrees in concatenation (.) or string at /Users/username/Downloads/fink-0.41.1/bootstrap line 653, <STDIN> line 1. 77/usr/bin/sed -e "s,@ARV@,stable," -e "s,@COMP@,main," -e "s,@ARCH@,x86_64," < Release > /sw3/fink//stable/main/binary-darwin-x86_64/Release; /usr/bin/touch /sw3/fink//stable/main/binary-darwin-x86_64/Packages; /usr/bin/gzip /sw3/fink//stable/main/binary-darwin-x86_64/Packages 78Use of uninitialized value $selfupdatetrees in string eq at /Users/username/Downloads/fink-0.41.1/bootstrap line 662, <STDIN> line 1. 79Use of uninitialized value $selfupdatetrees in string at /Users/username/Downloads/fink-0.41.1/bootstrap line 663, <STDIN> line 1. 80ERROR: Can't create symlink /sw3/fink/10.13

宜しくお願いいたします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

MACが無いので何とも言えませんが、pip3を入れるのはここのやり方で行けそうな気がします

# download and install setuptools curl -O https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py python3 ez_setup.py # download and install pip curl -O https://bootstrap.pypa.io/get-pip.py python3 get-pip.py

投稿2017/11/24 10:26

編集2017/11/24 10:28
退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

street

2017/11/27 01:30

有難うございます。 リンクのpyファイルは参照することが来ませんでしたが、 教えて頂いたURL先の内容を参考に進めたところ、インストールすることができました。 ご回答していただき有難うございました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問