
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
git bash에서 Flask를 설치하려고 명령어를 사용해도 설치가 안 되네요.
왜 그런가요?
보
Administrator@DESKTOP-DBLU0LO MINGW64 ~
$ ssh -i /c/Users/Administrator/Desktop/polee_mykey.pem ubuntu@3.35.13.81
Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 5.15.0-1019-aws x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Tue Nov 15 10:23:08 UTC 2022
System load: 0.0 Processes: 101
Usage of /: 32.2% of 7.57GB Users logged in: 0
Memory usage: 30% IPv4 address for eth0: 172.31.14.54
Swap usage: 0%
* Ubuntu Pro delivers the most comprehensive open source security and
compliance features.
18 updates can be applied immediately.
To see these additional updates run: apt list --upgradable
New release '22.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
*** System restart required ***
Last login: Tue Nov 15 02:25:48 2022 from 39.118.178.141
ubuntu@ip-172-31-14-54:~$ sudo update-alternatives --install /usr/bin/python pythhon3 10
ubuntu@ip-172-31-14-54:~$ sudo apt-get update
Hit:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease
Get:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-backports InRelea
Get:4 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd67 kB]
Get:5 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd6a [16.0 kB]
Get:6 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-updates/universe [976 kB]
Get:7 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-updates/universe adata [21.8 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1823
Get:10 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [301
Get:11 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata
Get:12 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Meta
Fetched 5698 kB in 3s (2004 kB/s)
Reading package lists... Done
ubuntu@ip-172-31-14-54:~$ sudo apt-get install -y python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pip is already the newest version (20.0.2-5ubuntu1.6).
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
ubuntu@ip-172-31-14-54:~$ sudo update-alternatives --install /usr/bin/pip pip /us
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/pip3roup pip is broken
update-alternatives: warning: not replacing /usr/bin/pip with a link
ubuntu@ip-172-31-14-54:~$ sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dpoCT --to-port 5000
ubuntu@ip-172-31-14-54:~$ ls
sparta
ubuntu@ip-172-31-14-54:~$ cd sparta/
ubuntu@ip-172-31-14-54:~/sparta$ ls
test.py
ubuntu@ip-172-31-14-54:~/sparta$ python test.py
hello sparta!!
ubuntu@ip-172-31-14-54:~/sparta$ ls
app.py static templates
ubuntu@ip-172-31-14-54:~/sparta$ python app.py
* Serving Flask app 'app'
* Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on all addresses (0.0.0.0)
* Running on http://127.0.0.1:5000
* Running on http://172.31.14.54:5000
Press CTRL+C to quit
* Restarting with stat
* Debugger is active!
* Debugger PIN: 112-848-485
pip install flask
고 계신 화면 전체를 캡처해 주시면, 튜터님들이 빠르게 상황을 이해할 수 있어요.
