Python [colorama] 00 Installing on Linux

John Hammond · Intermediate ·🎨 Image & Video AI ·13y ago

Key Takeaways

Installs colorama on Linux

Full Transcript

All right. Hey, what's up guys? Ruden here coming back at you with another Python tutorial and we're looking at even more of the Colorama module. But for now, we've actually got to install the sucker. Boom. All right. Uh, I've got Google open right now, but this is almost actually kind of because I want to introduce something kind of cool to you guys if you haven't actually heard of it. And we're going to be using this tool or this kind of little utility to actually install Colorama for us and make this a lot easier because on Windows you've got the uh the typical um at least process of going to the website, downloading the file uh and you know actually going through the uh archive, finding the things that we need to install the program, then actually running the execution and all that sort of thing. But on Linux, everything's a lot easier. I mean, you guys know that you guys are all Linux users. At least I'm that's what I'm assuming if you're watching this video. So, everything's automated for us. But what I want to show you is pip and uh pip pip. It's this Python package sort of controller. It manages uh Python packages that you can install from the Python package index. Now, in the last video, you guys obviously saw that I was in the Python package index when I was showing you Colorama, but pip is just a tool for installing and managing Python packages. It's like a typical, you know, package manager for any Linux system. So, this is kind of easy. I mean, it's we're right at home with our package manager sort of ideal. So, if you guys haven't heard of this, this is what we're going to be using. And it's kind of a really cool tool for when you're working with Python. So, I'll get my terminal up over here. And my package manager is a aptitude or aptget because I'm working in Unity. I'm sorry, Ubuntu right now. It's any sort of like Debian based distribution will likely have aptitude or appgget whatever it is but like maybe Fedora or the Red Hat ones might be using RPMs or Yum because that's just what they do. Anyway, pseudo appget install if you're on Ubuntu or a Debian distribution like I am. And I'm going to install pip because I don't actually have it installed. I'm going to go ahead and type in my uh password here. And uh it can't find pip. And you know that's because I'm stupid. pip is actually inside of a package called Python pip. Typically, when you're working with things uh in Python anyway, they also typically have a preceding sort of the term anyway, that means it's from Python. Like if you're installing a Python module from this um command line here with appget, then you can just typically use Python with the dash or the hyphen preceding what you'd be typically looking for. Like Pygame kind of does that same sort of thing. Anyway, enough of me talking and trying to explain myself from that terrible misconception where I was an idiot and looked like an embarrassing fool. Python pip. Okay, we can install that. It's going to go ahead and quickly install that for us. And uh now we actually have a new tool. We've got something fancy to play with. And that makes things really easy when we're trying to install Python packages. So, pretty simple. Now, it should be done right now as usual. It's fast. Now we can use pip and then go ahead and install as our second command or our argument anyway and we can install Colorama and uh requirements are already satisfied because for me I actually already have Colorama installed and actually I'll show you something new because you can go ahead and uninstall something whenever you don't want it. So I'm actually going to uninstall Colorama and I'll go ahead and show you one more time. Okay, it looks like it's actually even looking for a Y rather than a yes. Okay, pretty errors. That's because I am not root. And uh now it should be able to do so. Successfully uninstalled Colorama. Easy as that. Now, if we use pip install Colorama, I will probably have to be root to do this instead. And this is typically what you're going to see when you're installing Colorama. And you will probably have to be root, so you can use your pseudo command and that sort of thing. I I mean, if you're a Linux user, you probably understand all the terms that I'm throwing around because I mean, you're on Linux. It should be easy enough as that. But uh okay, Colorama is installed. We can use it. Easy enough. If I actually throw open my Python interpreter and typed import color, I don't get any errors. So, we're in a good spot here, guys. Colorama is installed and we are ready to roll. Now, if you guys actually watch the Windows version of this video, I'll go through the manual process of actually downloading the file and uh running the installer and that sort of thing. And you guys can do that on Linux. You totally can. Of course, you have that option, but everything's a lot easier when you've got something to manage it for you, you know. So, again, this is another little video to boast about how awesome Linux is and how sucky Windows is, you know. And, uh, just to get you guys up and running with Colorama. Thanks again, though, and I hope to see you in the next tutorial. Adios, guys.

Original Description

If you would like to support me, please like, comment & subscribe, and check me out on Patreon: https://patreon.com/johnhammond010 E-mail: johnhammond010@gmail.com PayPal: http://paypal.me/johnhammond010 GitHub: https://github.com/JohnHammond Site: http://www.johnhammond.org Twitter: https://twitter.com/_johnhammond
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from John Hammond · John Hammond · 17 of 60

1 Code Commentaries? PHP to JavaScript in Bash and PHP!
Code Commentaries? PHP to JavaScript in Bash and PHP!
John Hammond
2 Tutorials? MySQL connection with PHP and Bash!
Tutorials? MySQL connection with PHP and Bash!
John Hammond
3 Variable Naming in Python! Happy Birthday, Linux! Nokia N900!
Variable Naming in Python! Happy Birthday, Linux! Nokia N900!
John Hammond
4 JavaScript Splits The URL!
JavaScript Splits The URL!
John Hammond
5 HTML Tables in Python!
HTML Tables in Python!
John Hammond
6 HTML, Net Shares, GML!
HTML, Net Shares, GML!
John Hammond
7 Python 08 Programming Style and Comments
Python 08 Programming Style and Comments
John Hammond
8 Python 26 Object Oriented Programming
Python 26 Object Oriented Programming
John Hammond
9 75 Python Tutorials, Out Now!
75 Python Tutorials, Out Now!
John Hammond
10 Batch 14 Mathematical Expressions
Batch 14 Mathematical Expressions
John Hammond
11 Batch 85 Array Append
Batch 85 Array Append
John Hammond
12 Batch 86 Array Count
Batch 86 Array Count
John Hammond
13 Batch 87 Array Index
Batch 87 Array Index
John Hammond
14 Batch 88 Array Insert
Batch 88 Array Insert
John Hammond
15 Batch 89 Array Remove
Batch 89 Array Remove
John Hammond
16 Batch 90 Array Reverse
Batch 90 Array Reverse
John Hammond
Python [colorama] 00 Installing on Linux
Python [colorama] 00 Installing on Linux
John Hammond
18 Python [colorama] 09 Cursor Position
Python [colorama] 09 Cursor Position
John Hammond
19 Python [hashlib] 02 Algorithms
Python [hashlib] 02 Algorithms
John Hammond
20 Python 00 Installing IDLE on Linux
Python 00 Installing IDLE on Linux
John Hammond
21 Python [pygame] 11 Rectangular Collision Detection
Python [pygame] 11 Rectangular Collision Detection
John Hammond
22 Python [pygame] 12 Platforming Rectangular Collision Resolution
Python [pygame] 12 Platforming Rectangular Collision Resolution
John Hammond
23 Python [XML-RPC] 01 Research
Python [XML-RPC] 01 Research
John Hammond
24 Python [pyenchant] 03 Personal Word Lists
Python [pyenchant] 03 Personal Word Lists
John Hammond
25 FancyURLopener Authentication and User-Agent [urllib] 03
FancyURLopener Authentication and User-Agent [urllib] 03
John Hammond
26 Python 04: PEP8 Coding
Python 04: PEP8 Coding
John Hammond
27 Python Challenge! 17 COOKIES
Python Challenge! 17 COOKIES
John Hammond
28 Google CTF 2016: Ernst Echidna
Google CTF 2016: Ernst Echidna
John Hammond
29 Google CTF 2016: Spotted Quoll
Google CTF 2016: Spotted Quoll
John Hammond
30 Google CTF 2016: Can you Repo It?
Google CTF 2016: Can you Repo It?
John Hammond
31 Google CTF 2016: No Big Deal
Google CTF 2016: No Big Deal
John Hammond
32 Google CTF 2016: In Recorded Conversation
Google CTF 2016: In Recorded Conversation
John Hammond
33 Homemade CTF Challenge: 01 "Orchestra"
Homemade CTF Challenge: 01 "Orchestra"
John Hammond
34 Homemade CTF Challenge: 02 "Bae's Base"
Homemade CTF Challenge: 02 "Bae's Base"
John Hammond
35 Homemade CTF Challenge: 03 "Web Hunt"
Homemade CTF Challenge: 03 "Web Hunt"
John Hammond
36 Homemade CTF Challenge: 04 "UPX"
Homemade CTF Challenge: 04 "UPX"
John Hammond
37 Homemade CTF Challenge: 05 "The Assumption Song"
Homemade CTF Challenge: 05 "The Assumption Song"
John Hammond
38 Homemade CTF Challenge: 06 "A Brisk Stroll"
Homemade CTF Challenge: 06 "A Brisk Stroll"
John Hammond
39 Homemade CTF Challenge: 06 "I lost my password!"
Homemade CTF Challenge: 06 "I lost my password!"
John Hammond
40 web25 :: Mr. Robot : EKOPARTY CTF 2016
web25 :: Mr. Robot : EKOPARTY CTF 2016
John Hammond
41 web50 : RFC 7230 :: EKOPARTY CTF 2016
web50 : RFC 7230 :: EKOPARTY CTF 2016
John Hammond
42 misc50 : Hidden inside EKO :: EKOPARTY CTF 2016
misc50 : Hidden inside EKO :: EKOPARTY CTF 2016
John Hammond
43 Hack The Vote 2016 CTF: Sander's Fan Club [web100]
Hack The Vote 2016 CTF: Sander's Fan Club [web100]
John Hammond
44 Hack The Vote 2016 CTF Warpspeed [forensics150]
Hack The Vote 2016 CTF Warpspeed [forensics150]
John Hammond
45 Juniors CTF 2016 :: Black Suprematic Square
Juniors CTF 2016 :: Black Suprematic Square
John Hammond
46 Juniors CTF 2016 :: Six Strange Tales
Juniors CTF 2016 :: Six Strange Tales
John Hammond
47 Juniors CTF 2016 :: Lost Code
Juniors CTF 2016 :: Lost Code
John Hammond
48 Juniors CTF 2016 :: Here Goes!
Juniors CTF 2016 :: Here Goes!
John Hammond
49 Juniors CTF 2016 :: Southern Cross
Juniors CTF 2016 :: Southern Cross
John Hammond
50 Juniors CTF 2016 :: Clone Attack
Juniors CTF 2016 :: Clone Attack
John Hammond
51 Juniors CTF 2016 :: Dirty Repo
Juniors CTF 2016 :: Dirty Repo
John Hammond
52 Juniors CTF 2016 :: Hackers Blog
Juniors CTF 2016 :: Hackers Blog
John Hammond
53 Juniors CTF 2016 :: Voting!!!
Juniors CTF 2016 :: Voting!!!
John Hammond
54 Juniors CTF 2016 :: The Good, The Bad and The Junkman
Juniors CTF 2016 :: The Good, The Bad and The Junkman
John Hammond
55 Juniors CTF 2016 :: Stop Thief!
Juniors CTF 2016 :: Stop Thief!
John Hammond
56 Juniors CTF 2016 :: ROFL
Juniors CTF 2016 :: ROFL
John Hammond
57 Juniors CTF 2016 :: Restriced Area
Juniors CTF 2016 :: Restriced Area
John Hammond
58 Juniors CTF 2016 :: Oh SSH!
Juniors CTF 2016 :: Oh SSH!
John Hammond
59 HackCon CTF 2017 TRIVIA and BONUS Challenges
HackCon CTF 2017 TRIVIA and BONUS Challenges
John Hammond
60 HackCon CTF 2017 "Bacche" Challenges
HackCon CTF 2017 "Bacche" Challenges
John Hammond

Related Reads

📰
MemComic: Teaching an Image Generator to Remember Who Your Characters Are
Learn how MemComic teaches an image generator to remember character identities, enhancing continuity in generated images
Medium · AI
📰
How to Stop an Image Model From Ignoring Your Reference Image
Learn how to troubleshoot image models ignoring reference images by identifying and resolving prompt conflicts
Dev.to AI
📰
Building image & video conversion that never leaves the browser
Learn how to build image and video conversion tools that run entirely in the browser, enhancing user privacy and reducing server load
Dev.to · Ken Lee
📰
Unified Image Generation APIs: One Key, Multiple Models, and Safer Ticket Triage
Use unified image generation APIs for stable contracts and safer model changes, prioritizing reliability over provider-specific controls
Dev.to AI
Up next
NEW MOST POWERFUL NSFW FREE AI IMAGE MODEL IS HERE!
Aitrepreneur
Watch →