質問編集履歴

6

追加の追加

2019/11/21 01:08

投稿

pokemonta
pokemonta

スコア170

test CHANGED
File without changes
test CHANGED
@@ -123,3 +123,13 @@
123
123
  [ec2-user ~]$ echo $PATH
124
124
 
125
125
  /home/ec2-user/.pyenv/shims:/home/ec2-user/.pyenv/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/ec2-user/.local/bin:/home/ec2-user/bin
126
+
127
+
128
+
129
+ 11/21 さらに追加
130
+
131
+ [ec2-user@ip-172-31-47-166 ~]$ pyenv versions
132
+
133
+ system
134
+
135
+ * 3.7.2 (set by /home/ec2-user/.python-version)

5

誤記訂正

2019/11/21 01:08

投稿

pokemonta
pokemonta

スコア170

test CHANGED
File without changes
test CHANGED
@@ -52,7 +52,7 @@
52
52
 
53
53
  追加調査の結果
54
54
 
55
- [ec2-user@ip-10-1-2-11 pip]$ pip show pip
55
+ [ec2-user@]$ pip show pip
56
56
 
57
57
  DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
58
58
 
@@ -98,13 +98,13 @@
98
98
 
99
99
 
100
100
 
101
- [ec2-user@ip-10-1-2-11]$ pip -V
101
+ [ec2-user@]$ pip -V
102
102
 
103
103
  pip 19.3.1 from /usr/lib/python2.7/site-packages/pip (python 2.7)
104
104
 
105
105
 
106
106
 
107
- [ec2-user@ip-10-1-2-11]$ pip3 -V
107
+ [ec2-user@]$ pip3 -V
108
108
 
109
109
  pip 18.1 from /home/ec2-user/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pip (python 3.7)
110
110
 

4

質問に回答

2019/11/21 00:38

投稿

pokemonta
pokemonta

スコア170

test CHANGED
File without changes
test CHANGED
@@ -86,7 +86,7 @@
86
86
 
87
87
  さらに調査。シンボリックを同じにすることで他で不都合がでてきましたので戻しました。
88
88
 
89
- [ec2-user@ip-10-1-2-11 ~]$ ls -l /bin/python
89
+ [ec2-user@]$ ls -l /bin/python
90
90
 
91
91
  lrwxrwxrwx 1 root root 7 Aug 29 22:47 /bin/python -> python2
92
92
 
@@ -107,3 +107,19 @@
107
107
  [ec2-user@ip-10-1-2-11]$ pip3 -V
108
108
 
109
109
  pip 18.1 from /home/ec2-user/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pip (python 3.7)
110
+
111
+
112
+
113
+ 11/21 質問に対する回答
114
+
115
+ [ec2-user ~]$ which pyenv
116
+
117
+ ~/.pyenv/bin/pyenv
118
+
119
+ [ec2-user ~]$ which pip
120
+
121
+ ~/.pyenv/shims/pip
122
+
123
+ [ec2-user ~]$ echo $PATH
124
+
125
+ /home/ec2-user/.pyenv/shims:/home/ec2-user/.pyenv/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/ec2-user/.local/bin:/home/ec2-user/bin

3

誤記訂正

2019/11/21 00:37

投稿

pokemonta
pokemonta

スコア170

test CHANGED
File without changes
test CHANGED
@@ -98,12 +98,12 @@
98
98
 
99
99
 
100
100
 
101
- [ec2-user@ip-10-1-2-11 requirements]$ pip -V
101
+ [ec2-user@ip-10-1-2-11]$ pip -V
102
102
 
103
103
  pip 19.3.1 from /usr/lib/python2.7/site-packages/pip (python 2.7)
104
104
 
105
105
 
106
106
 
107
- [ec2-user@ip-10-1-2-11 requirements]$ pip3 -V
107
+ [ec2-user@ip-10-1-2-11]$ pip3 -V
108
108
 
109
109
  pip 18.1 from /home/ec2-user/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pip (python 3.7)

2

さらに調査

2019/11/20 11:06

投稿

pokemonta
pokemonta

スコア170

test CHANGED
File without changes
test CHANGED
@@ -81,3 +81,29 @@
81
81
  Locationを変えることでいけるのでしょうか?
82
82
 
83
83
  変え方がわかりませんが
84
+
85
+
86
+
87
+ さらに調査。シンボリックを同じにすることで他で不都合がでてきましたので戻しました。
88
+
89
+ [ec2-user@ip-10-1-2-11 ~]$ ls -l /bin/python
90
+
91
+ lrwxrwxrwx 1 root root 7 Aug 29 22:47 /bin/python -> python2
92
+
93
+
94
+
95
+ ちなみにpip3を指定すると3.7.2になります。
96
+
97
+ この古い2.7を消せば解決すると思いますがいかがでしょうか?消し方教えて下さい
98
+
99
+
100
+
101
+ [ec2-user@ip-10-1-2-11 requirements]$ pip -V
102
+
103
+ pip 19.3.1 from /usr/lib/python2.7/site-packages/pip (python 2.7)
104
+
105
+
106
+
107
+ [ec2-user@ip-10-1-2-11 requirements]$ pip3 -V
108
+
109
+ pip 18.1 from /home/ec2-user/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pip (python 3.7)

1

追加調査

2019/11/20 11:06

投稿

pokemonta
pokemonta

スコア170

test CHANGED
File without changes
test CHANGED
@@ -47,3 +47,37 @@
47
47
  [ec2-user]$ ls -l /bin/python
48
48
 
49
49
  lrwxrwxrwx 1 root root 34 Nov 20 07:59 /bin/python -> /home/ec2-user/.pyenv/shims/python
50
+
51
+
52
+
53
+ 追加調査の結果
54
+
55
+ [ec2-user@ip-10-1-2-11 pip]$ pip show pip
56
+
57
+ DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
58
+
59
+ Name: pip
60
+
61
+ Version: 19.3.1
62
+
63
+ Summary: The PyPA recommended tool for installing Python packages.
64
+
65
+ Home-page: https://pip.pypa.io/
66
+
67
+ Author: The pip developers
68
+
69
+ Author-email: pypa-dev@groups.google.com
70
+
71
+ License: MIT
72
+
73
+ Location: /usr/lib/python2.7/site-packages
74
+
75
+ Requires:
76
+
77
+ Required-by:
78
+
79
+
80
+
81
+ Locationを変えることでいけるのでしょうか?
82
+
83
+ 変え方がわかりませんが