<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Command Prompt &#8211; cybogeek.com</title>
	<atom:link href="https://cybogeek.com/tag/command-prompt/feed/" rel="self" type="application/rss+xml" />
	<link>https://cybogeek.com</link>
	<description>Explore, Develop, Safeguard</description>
	<lastBuildDate>Tue, 05 May 2026 06:59:04 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://cybogeek.com/wp-content/uploads/2025/09/cropped-cybogeek-ico-1x-32x32.png</url>
	<title>Command Prompt &#8211; cybogeek.com</title>
	<link>https://cybogeek.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Run Your First Python Script on Windows (Complete Beginner&#8217;s Guide)</title>
		<link>https://cybogeek.com/how-to-run-your-first-python-script-on-windows-complete-beginners-guide/</link>
		
		<dc:creator><![CDATA[Sukanto]]></dc:creator>
		<pubDate>Tue, 05 May 2026 06:57:29 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[coding basics]]></category>
		<category><![CDATA[Command Prompt]]></category>
		<category><![CDATA[first Python program]]></category>
		<category><![CDATA[hello world Python]]></category>
		<category><![CDATA[Python beginner]]></category>
		<category><![CDATA[Python script]]></category>
		<category><![CDATA[Python setup]]></category>
		<category><![CDATA[Python tutorial]]></category>
		<category><![CDATA[run Python]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://cybogeek.com/?p=493</guid>

					<description><![CDATA[Running your first Python script is one of those moments you will remember. It is the point where Python stops being something you read about and starts being something you do. Suddenly, the code in your text editor becomes real output on your screen — and that feeling is genuinely exciting. This guide walks you [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Running your first Python script is one of those moments you will remember. It is the point where Python stops being something you read about and starts being something you <em>do</em>. Suddenly, the code in your text editor becomes real output on your screen — and that feeling is genuinely exciting.</p>
<p>This guide walks you through every step of writing, saving, and running a Python script on Windows, including multiple methods, common mistakes beginners make, and where to go from here. Whether you are a student, a curious hobbyist, or someone switching careers into tech, this tutorial is written with you in mind.</p>
<hr />
<h3>Before You Begin: What You Need</h3>
<p>You will need Python installed on your Windows computer. If you have not done this yet, head over to <a href="https://www.python.org/downloads/" target="_blank" rel="noopener">python.org/downloads</a> and grab the latest stable version. During installation, make sure to check the box that says <strong>&#8220;Add Python to PATH&#8221;</strong> — this is the most common setup mistake beginners make, and skipping it causes problems we will cover in the troubleshooting section below.</p>
<p>If you haven&#8217;t installed Python, follow  our <a href="https://cybogeek.com/how-to-install-python-on-windows-without-confusion-beginner-guide/" target="_blank" rel="noopener"><strong>Complete Python Installation Guide</strong></a></p>
<p>You also need a text editor. Here are your three best options:</p>
<ul>
<li><strong>Notepad</strong> — Already on your PC, no installation required. Fine for a quick start.</li>
<li><strong>VS Code (Visual Studio Code)</strong> — Free, powerful, and what most professional developers use. Recommended for anyone serious about learning Python.</li>
<li><strong>IDLE</strong> — Comes bundled with Python automatically. Simple and beginner-friendly.</li>
</ul>
<p>There is no wrong choice here. Pick whichever one feels most comfortable and get started.</p>
<hr />
<h3>Step 1: Write Your First Python Program</h3>
<p>Open your text editor and type the following two lines exactly as shown:</p>
<pre><code class="language-python">print("Hello, World!")
print("Your first Python script is running!")
</code></pre>
<p>That is your entire first program. Two lines. Simple — but do not underestimate it.</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-495" src="https://cybogeek.com/wp-content/uploads/2026/05/first-python-program.png" alt="first-python-program" width="779" height="139" srcset="https://cybogeek.com/wp-content/uploads/2026/05/first-python-program.png 779w, https://cybogeek.com/wp-content/uploads/2026/05/first-python-program-300x54.png 300w, https://cybogeek.com/wp-content/uploads/2026/05/first-python-program-768x137.png 768w" sizes="(max-width: 779px) 100vw, 779px" /></p>
<h4>What is <code>print()</code> and why does it matter?</h4>
<p>The <code>print()</code> function is one of the most used tools in Python. It tells Python to display whatever is inside the parentheses on the screen. The text inside the quotation marks is called a <strong>string</strong> — a sequence of characters Python treats as plain text.</p>
<p>When you run this script, Python reads line 1, prints the first message, then reads line 2, prints the second message, and stops. Python executes code from top to bottom, one line at a time. This is called <strong>sequential execution</strong>, and it is one of the fundamental concepts behind all programming.</p>
<p>If you want, try adding a third line:</p>
<pre><code class="language-python">print("I am learning Python!")
</code></pre>
<p>Python will print all three messages in order. This is your first experience with how programs actually work.</p>
<hr />
<h3>Step 2: Save the File Correctly</h3>
<p>This step trips up more beginners than any other. Pay close attention.</p>
<p>Go to <strong>File &gt; Save As</strong> in your text editor and follow these rules:</p>
<ol>
<li>Name the file <code>hello.py</code> — the <code>.py</code> extension tells Windows (and Python) that this is a Python script.</li>
<li>Save it somewhere you can easily find. A folder called <code>PythonProjects</code> inside your Documents folder is a great habit to start early. You could also save to the Desktop for now.</li>
<li>In Notepad specifically, change <strong>&#8220;Save as type&#8221;</strong> from <code>Text Documents (*.txt)</code> to <code>All Files (*.*)</code> before saving. Otherwise Notepad silently saves it as <code>hello.py.txt</code>, which will not run as a Python script.</li>
</ol>
<h4>How to check your file was saved correctly</h4>
<p>Open File Explorer and navigate to where you saved the file. If you see <code>hello.py</code> with a Python logo icon, you are good. If you see <code>hello.py.txt</code>, you need to rename it.</p>
<p><strong>Quick fix for hidden extensions:</strong> Windows hides file extensions by default. To turn this off, open File Explorer, click the <strong>View</strong> tab at the top, and check the box labeled <strong>&#8220;File name extensions&#8221;</strong>. Now you can see the real name of every file on your computer — a useful habit for any developer.</p>
<hr />
<h3>Step 3: Open Command Prompt or PowerShell</h3>
<p>The command line is where you actually run Python scripts. It looks intimidating at first, but you will be comfortable with it after a few minutes.</p>
<p><strong>How to open Command Prompt:</strong></p>
<ul>
<li>Press the <strong>Windows key</strong>, type <code>cmd</code>, and press Enter.</li>
<li>Or press <strong>Windows key + R</strong>, type <code>cmd</code>, and press Enter.</li>
</ul>
<p><strong>How to open PowerShell:</strong></p>
<ul>
<li>Press the <strong>Windows key</strong>, type <code>PowerShell</code>, and press Enter.</li>
</ul>
<p>Both work fine for running Python scripts. Command Prompt is slightly simpler; PowerShell is more powerful. Either is fine for what we are doing here.</p>
<p>You will see a black window with a blinking cursor. This is the <strong>terminal</strong> — a text-based interface for talking directly to your computer. It is the same kind of tool that developers all over the world use every day.</p>
<hr />
<h3>Step 4: Navigate to Your Script&#8217;s Folder</h3>
<p>The terminal starts in a default location, usually your user folder (something like <code>C:\Users\YourName</code>). You need to navigate to the folder where you saved <code>hello.py</code>.</p>
<p>The command you use is <code>cd</code>, which stands for <strong>change directory</strong>. Here are examples:</p>
<p>If you saved your file on the Desktop:</p>
<pre><code class="language-bash">cd Desktop
</code></pre>
<p>If you saved it in a PythonProjects folder inside Documents:</p>
<pre><code class="language-bash">cd Documents\PythonProjects
</code></pre>
<p>If you ever get lost, you can always type <code>cd %USERPROFILE%</code> to return to your home folder and start again.</p>
<h4>Confirm you are in the right place</h4>
<p>Once you navigate to the folder, type this command and press Enter:</p>
<pre><code class="language-bash">dir
</code></pre>
<p>This lists every file in the current folder. If you see <code>hello.py</code> in the list, you are in exactly the right place. If you do not see it, you are in the wrong folder — use <code>cd</code> again to find it.</p>
<hr />
<h3>Step 5: Run the Script</h3>
<p>This is the moment everything comes together. Type the following command and press Enter:</p>
<pre><code class="language-bash">python hello.py
</code></pre>
<p>Your terminal should display:</p>
<pre><code>Hello, World!
Your first Python script is running!
</code></pre>
<p><img decoding="async" class="aligncenter size-full wp-image-496" src="https://cybogeek.com/wp-content/uploads/2026/05/first-python-program-output.png" alt="first-python-program-output" width="757" height="166" srcset="https://cybogeek.com/wp-content/uploads/2026/05/first-python-program-output.png 757w, https://cybogeek.com/wp-content/uploads/2026/05/first-python-program-output-300x66.png 300w" sizes="(max-width: 757px) 100vw, 757px" /></p>
<p><strong>Congratulations.</strong> You just ran your first Python program. Your setup is working correctly, and you have taken a real step into software development.</p>
<hr />
<h3>Alternative Ways to Run Python Scripts</h3>
<p>The command line is not the only option. Here are three other methods, each with its own advantages.</p>
<h4>Method 1: Using IDLE (Best for Beginners)</h4>
<p>IDLE is Python&#8217;s built-in editor and is perfect if you want a simple, distraction-free environment.</p>
<ol>
<li>Press the Windows key and search for <strong>IDLE</strong>.</li>
<li>Open it. You will see the Python Shell — a place where you can type Python code directly.</li>
<li>Go to <strong>File &gt; Open</strong> and select your <code>hello.py</code> file.</li>
<li>Press <strong>F5</strong> (or go to <strong>Run &gt; Run Module</strong>).</li>
</ol>
<p>The output appears in the Shell window at the bottom. IDLE also highlights your code in different colors (called <strong>syntax highlighting</strong>), making it easier to read and spot mistakes.</p>
<h4>Method 2: Using VS Code (Best for Serious Learning)</h4>
<p>VS Code is the industry-standard editor for Python development. It is more complex than IDLE but far more powerful, and learning it now will pay off later.</p>
<ol>
<li>Download VS Code from <a href="https://code.visualstudio.com/" target="_blank" rel="noopener">code.visualstudio.com</a>.</li>
<li>Install the <strong>Python extension</strong> (you will be prompted on first launch, or search for &#8220;Python&#8221; in the Extensions panel).</li>
<li>Open your project folder: <strong>File &gt; Open Folder</strong> and select your <code>PythonProjects</code> folder.</li>
<li>Click on <code>hello.py</code> in the sidebar to open it.</li>
<li>Press <strong>Ctrl+F5</strong> or click the <strong>Run Python File</strong> button (the play icon in the top-right corner).</li>
</ol>
<p>VS Code runs the script and shows the output in a built-in terminal panel at the bottom. You also get autocomplete suggestions, error highlighting, and a debugger — tools that become invaluable as your programs grow.</p>
<h4>Method 3: Double-Clicking the File</h4>
<p>You can right-click <code>hello.py</code> in File Explorer and choose <strong>Open with &gt; Python</strong>. A terminal window will open, run the script, and then close immediately — often too fast to read.</p>
<p>To keep the window open long enough to see the output, add this line at the very end of your script:</p>
<pre><code class="language-python">input("Press Enter to close...")
</code></pre>
<p>This pauses the program and waits for you to press Enter before the window closes. It is a quick fix, but for most learning purposes, using the terminal or VS Code is a better habit to develop.</p>
<hr />
<h3>Troubleshooting Common Problems</h3>
<h4>&#8220;Python is not recognized as an internal or external command.&#8221;</h4>
<p>This means Python is not in your system&#8217;s PATH — Windows does not know where Python is installed.</p>
<p><strong>Quick fix:</strong> Try using <code>py</code> instead of <code>python</code>:</p>
<pre><code class="language-bash">py hello.py
</code></pre>
<p><strong>Permanent fix:</strong> Reinstall Python from <a href="https://python.org/" target="_blank" rel="noopener">python.org</a> and make sure to check <strong>&#8220;Add Python to PATH&#8221;</strong> during installation. After reinstalling, restart Command Prompt and try again.</p>
<h4>&#8220;No module named&#8230;&#8221;</h4>
<p>This error usually means one of two things. Either you are in the wrong folder (so Python cannot find your file), or you are trying to use an external library that has not been installed yet.</p>
<p>For our simple<code>hello.py</code>, this should not happen. If it does, type <code>dir</code> to list the files in your current folder and confirm <code>hello.py</code> if it&#8217;s there. If not, use <code>cd</code> to navigate to the correct location.</p>
<h4>The terminal window opens and closes instantly</h4>
<p>This happens when you double-click a <code>.py</code> file. The script runs and finishes in a fraction of a second, and Windows closes the terminal. Add <code>input("Press Enter to close...")</code> to the end of your script to pause it, or use the command line method instead — which gives you full control.</p>
<h4>The output shows an error in red text</h4>
<p>Red text means Python found a problem in your code. Read the error message carefully — Python error messages are actually quite informative once you learn to read them. Common causes include:</p>
<ul>
<li>A missing closing quote: <code>print("Hello, World!</code> — notice no closing <code>"</code></li>
<li>Wrong capitalization: <code>Print("Hello")</code> instead of <code>print("Hello")</code> — Python is case-sensitive</li>
<li>Missing parentheses: <code>print "Hello"</code> — valid in older Python 2, but not in Python 3</li>
</ul>
<hr />
<h3>Understanding What Just Happened (The Bigger Picture)</h3>
<p>When you typed <code>python hello.py</code> and pressed Enter, several things happened behind the scenes:</p>
<ol>
<li>Windows found the Python program installed on your computer.</li>
<li>Python opened and read your <code>hello.py</code> file.</li>
<li>Python translated your human-readable code into instructions the computer can execute.</li>
<li>The computer executed those instructions and sent the output to your screen.</li>
</ol>
<p>This process is called <strong>interpretation</strong> — Python reads and runs your code line by line, without first compiling it into a separate file the way some other programming languages do (like C++ or Java). This is one reason Python is so beginner-friendly: the feedback loop between writing code and seeing results is almost instant.</p>
<hr />
<h3>What to Do Next</h3>
<p>Now that your setup is confirmed and you understand how running a script works, here are five things to try immediately:</p>
<p><strong>1. Change the message.</strong> Edit <code>hello.py</code>, change the text inside the quotes, save, and run again. Get comfortable with the edit-save-run loop.</p>
<p><strong>2. Add more print lines.</strong> Try printing your name, your age, your favorite movie — anything. See how each line appears in order.</p>
<p><strong>3. Use the <code>input()</code> function.</strong> Replace your second print line with:</p>
<pre><code class="language-python">name = input("What is your name? ")
print("Hello, " + name + "!")
</code></pre>
<p>This makes your program interactive. The user types a name, and Python greets them by name. You have just written your first program with user input.</p>
<p><strong>4. Experiment with math.</strong> Python is a calculator too. Try:</p>
<pre><code class="language-python">print(2 + 2)
print(10 * 5)
print(100 / 4)
</code></pre>
<p>No quotes needed for numbers — Python handles them differently from text.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-497" src="https://cybogeek.com/wp-content/uploads/2026/05/python-program-test.png" alt="python-program-test" width="756" height="357" srcset="https://cybogeek.com/wp-content/uploads/2026/05/python-program-test.png 756w, https://cybogeek.com/wp-content/uploads/2026/05/python-program-test-300x142.png 300w" sizes="(max-width: 756px) 100vw, 756px" /></p>
<p><strong>5. Make your first mistake on purpose.</strong> Delete a closing quote or misspell <code>print</code>. Run the script. Read the error message. Getting comfortable with Python&#8217;s error messages is one of the fastest ways to become a better programmer.</p>
<hr />
<h4>Final Thoughts</h4>
<p>Writing and running your first Python script is a simple act with a significant meaning. It proves your environment is set up correctly, teaches you how the terminal works, and gives you a concrete foundation to build on.</p>
<p>From here, every Python concept you learn — variables, loops, functions, libraries, web scraping, data analysis, automation — will be built on top of this exact workflow: write code, save the file, run the script, see the result.</p>
<p>The gap between a beginner and a confident Python developer is just practice. And practice starts with <code>python hello.py</code>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Fix “pip Is Not Recognized” in Windows</title>
		<link>https://cybogeek.com/how-to-fix-pip-is-not-recognized-in-windows/</link>
		
		<dc:creator><![CDATA[Sukanto]]></dc:creator>
		<pubDate>Mon, 04 May 2026 15:12:15 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Command Prompt]]></category>
		<category><![CDATA[package installation]]></category>
		<category><![CDATA[PATH]]></category>
		<category><![CDATA[pip]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Python beginner]]></category>
		<category><![CDATA[Python errors]]></category>
		<category><![CDATA[Python setup]]></category>
		<category><![CDATA[Python tutorial]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://cybogeek.com/?p=471</guid>

					<description><![CDATA[If you are working with Python on Windows and suddenly see an error saying “pip is not recognized as an internal or external command”, it can be frustrating—especially when all you want to do is install a package and start coding. This issue is extremely common among beginners and even appears for users who already [&#8230;]]]></description>
										<content:encoded><![CDATA[<p data-start="360" data-end="703">If you are working with Python on Windows and suddenly see an error saying <strong data-start="435" data-end="497">“pip is not recognized as an internal or external command”</strong>, it can be frustrating—especially when all you want to do is install a package and start coding. This issue is extremely common among beginners and even appears for users who already have Python installed.</p>
<p data-start="705" data-end="982">The good news is that this problem is almost never serious. In most cases, it happens because Windows cannot locate the <strong data-start="825" data-end="832">pip</strong> command, not because pip is broken or missing forever. Once you understand why the error appears, fixing it becomes a logical and repeatable process.</p>
<p data-start="984" data-end="1167">This guide explains <strong data-start="1004" data-end="1037">what the error actually means</strong>, <strong data-start="1039" data-end="1057">why it happens</strong>, and <strong data-start="1063" data-end="1093">how to fix it step by step</strong>, even if you are completely new to Python and Windows command-line tools.</p>
<hr data-start="1169" data-end="1172" />
<h3 data-section-id="1hrlrfr" data-start="1174" data-end="1220">What “pip Is Not Recognized” Actually Means</h3>
<p data-start="1222" data-end="1320">When Windows displays this error, it is not saying that pip does not exist. Instead, it is saying:</p>
<blockquote data-start="1322" data-end="1360">
<p data-start="1324" data-end="1360">“I don’t know where pip is located.”</p>
</blockquote>
<p data-start="1362" data-end="1620">On Windows, commands like <code data-start="1388" data-end="1393">pip</code>, <code data-start="1395" data-end="1403">python</code>, or <code data-start="1408" data-end="1413">git</code> only work when their locations are listed in something called the <strong data-start="1480" data-end="1509">PATH environment variable</strong>. PATH is simply a list of folders that Windows checks when you type a command in Command Prompt or PowerShell.</p>
<p data-start="1362" data-end="1620"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-473" src="https://cybogeek.com/wp-content/uploads/2026/05/pip-not-recognised-fix-it-step-by-step.jpeg" alt="pip-not recognised fix it step by step" width="1312" height="736" srcset="https://cybogeek.com/wp-content/uploads/2026/05/pip-not-recognised-fix-it-step-by-step.jpeg 1312w, https://cybogeek.com/wp-content/uploads/2026/05/pip-not-recognised-fix-it-step-by-step-300x168.jpeg 300w, https://cybogeek.com/wp-content/uploads/2026/05/pip-not-recognised-fix-it-step-by-step-1024x574.jpeg 1024w, https://cybogeek.com/wp-content/uploads/2026/05/pip-not-recognised-fix-it-step-by-step-768x431.jpeg 768w, https://cybogeek.com/wp-content/uploads/2026/05/pip-not-recognised-fix-it-step-by-step-800x450.jpeg 800w" sizes="(max-width: 1312px) 100vw, 1312px" /></p>
<p data-start="1622" data-end="1744">If the folder containing <code data-start="1647" data-end="1656">pip.exe</code> is not listed in PATH, Windows will fail to find it—even if pip is correctly installed.</p>
<p data-start="1746" data-end="1781">This is why the error is so common:</p>
<ul data-start="1782" data-end="1872">
<li data-section-id="1neme5q" data-start="1782" data-end="1807">Python may be installed</li>
<li data-section-id="1402kgj" data-start="1808" data-end="1830">pip may be installed</li>
<li data-section-id="ju7j9s" data-start="1831" data-end="1872">but Windows does not know where to look</li>
</ul>
<p data-start="1874" data-end="1951">Understanding this concept makes the rest of the fixes much easier to follow.</p>
<hr data-start="1953" data-end="1956" />
<h3 data-section-id="1flx1qj" data-start="1958" data-end="2005">Why This Problem Happens So Often on Windows</h3>
<p data-start="2007" data-end="2270">Unlike some operating systems where tools are automatically available, Windows relies heavily on PATH configuration. During Python installation, there is a small checkbox called <strong data-start="2185" data-end="2209">“Add Python to PATH”</strong>. If this is skipped—even once—pip commands may stop working.</p>
<p data-start="2007" data-end="2270"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-474" src="https://cybogeek.com/wp-content/uploads/2026/05/fix-pip-error.jpg" alt="fix-pip-error" width="711" height="400" srcset="https://cybogeek.com/wp-content/uploads/2026/05/fix-pip-error.jpg 711w, https://cybogeek.com/wp-content/uploads/2026/05/fix-pip-error-300x169.jpg 300w" sizes="(max-width: 711px) 100vw, 711px" /></p>
<p data-start="2272" data-end="2301"><strong>Other common reasons include:</strong></p>
<ul data-start="2302" data-end="2498">
<li data-section-id="4zuyf4" data-start="2302" data-end="2347">Python was installed from a custom location</li>
<li data-section-id="1ds6awu" data-start="2348" data-end="2391">More than one Python version is installed</li>
<li data-section-id="1rq7br5" data-start="2392" data-end="2441">The terminal was opened before PATH was updated</li>
<li data-section-id="9588ca" data-start="2442" data-end="2498">Python was partially installed or upgraded incorrectly</li>
</ul>
<p data-start="2500" data-end="2594">None of these mean your system is broken. They simply mean Windows needs clearer instructions.</p>
<hr data-start="2596" data-end="2599" />
<h3 data-section-id="1jv3n61" data-start="2601" data-end="2644">Step 1: Confirm That Python Is Installed</h3>
<p data-start="2646" data-end="2700">Before fixing pip, make sure Python itself is working.</p>
<p data-start="2702" data-end="2755">Open <strong data-start="2707" data-end="2725">Command Prompt</strong> or <strong data-start="2729" data-end="2743">PowerShell</strong>, then type:</p>
<div class="relative w-full mt-4 mb-1">
<div class="">
<div class="relative">
<div class="h-full min-h-0 min-w-0">
<div class="h-full min-h-0 min-w-0">
<div class="border border-token-border-light border-radius-3xl corner-superellipse/1.1 rounded-3xl">
<div class="h-full w-full border-radius-3xl bg-token-bg-elevated-secondary corner-superellipse/1.1 overflow-clip rounded-3xl lxnfua_clipPathFallback">
<div class="relative">
<div class="pe-11 pt-3">
<div class="relative z-0 flex max-w-full">
<div id="code-block-viewer" class="q9tKkq_viewer cm-editor z-10 light:cm-light dark:cm-light flex h-full w-full flex-col items-stretch ͼd ͼr" dir="ltr">
<div class="cm-scroller">
<pre class="cm-content q9tKkq_readonly m-0"><code>python --version</code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<h4 data-section-id="iohyqa" data-start="2783" data-end="2809">What the result means:</h4>
<ul data-start="2810" data-end="2940">
<li data-section-id="1otskgj" data-start="2810" data-end="2875"><strong data-start="2812" data-end="2838">Version number appears</strong> → Python is installed and responding</li>
<li data-section-id="a8u7uy" data-start="2876" data-end="2940"><strong data-start="2878" data-end="2899">Command not found</strong> → Python is missing or not added to PATH</li>
</ul>
<p data-start="2942" data-end="3105">If Python itself is not recognized, reinstall Python first and make sure PATH is enabled during setup. Fixing pip without Python working correctly is not possible.</p>
<hr data-start="3107" data-end="3110" />
<h3 data-section-id="1n657nc" data-start="3112" data-end="3160">Step 2: Try Using pip Through Python Directly</h3>
<p data-start="3162" data-end="3235">Even if the <code data-start="3174" data-end="3179">pip</code> Command fails, pip may still exist and work internally.</p>
<p data-start="3237" data-end="3262">Try this command instead:</p>
<div class="relative w-full mt-4 mb-1">
<div class="">
<div class="relative">
<div class="h-full min-h-0 min-w-0">
<div class="h-full min-h-0 min-w-0">
<div class="border border-token-border-light border-radius-3xl corner-superellipse/1.1 rounded-3xl">
<div class="h-full w-full border-radius-3xl bg-token-bg-elevated-secondary corner-superellipse/1.1 overflow-clip rounded-3xl lxnfua_clipPathFallback">
<div class="relative">
<div class="pe-11 pt-3">
<div class="relative z-0 flex max-w-full">
<div id="code-block-viewer" class="q9tKkq_viewer cm-editor z-10 light:cm-light dark:cm-light flex h-full w-full flex-col items-stretch ͼd ͼr" dir="ltr">
<div class="cm-scroller">
<pre class="cm-content q9tKkq_readonly m-0"><code>python -m pip --version</code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p data-start="3297" data-end="3427">If this prints a version number, pip <strong data-start="3334" data-end="3365">is installed and functional</strong>. The issue is only with the shortcut command, not pip itself.</p>
<p data-start="3297" data-end="3427"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-475" src="https://cybogeek.com/wp-content/uploads/2026/05/pip-fix-step.jpg" alt="pip-fix-step" width="711" height="400" srcset="https://cybogeek.com/wp-content/uploads/2026/05/pip-fix-step.jpg 711w, https://cybogeek.com/wp-content/uploads/2026/05/pip-fix-step-300x169.jpg 300w" sizes="(max-width: 711px) 100vw, 711px" /></p>
<p data-start="3429" data-end="3455"><strong>This method works because:</strong></p>
<ul data-start="3456" data-end="3556">
<li data-section-id="1j5j1qp" data-start="3456" data-end="3495">Python directly loads pip as a module</li>
<li data-section-id="1skkb8" data-start="3496" data-end="3514">PATH is bypassed</li>
<li data-section-id="i8y4l0" data-start="3515" data-end="3556">Windows does not need to find <code data-start="3547" data-end="3556">pip.exe</code></li>
</ul>
<p data-start="3558" data-end="3597">You can also install packages this way:</p>
<div class="relative w-full mt-4 mb-1">
<div class="">
<div class="relative">
<div class="h-full min-h-0 min-w-0">
<div class="h-full min-h-0 min-w-0">
<div class="border border-token-border-light border-radius-3xl corner-superellipse/1.1 rounded-3xl">
<div class="h-full w-full border-radius-3xl bg-token-bg-elevated-secondary corner-superellipse/1.1 overflow-clip rounded-3xl lxnfua_clipPathFallback">
<div class="relative">
<div class="pe-11 pt-3">
<div class="relative z-0 flex max-w-full">
<div id="code-block-viewer" class="q9tKkq_viewer cm-editor z-10 light:cm-light dark:cm-light flex h-full w-full flex-col items-stretch ͼd ͼr" dir="ltr">
<div class="cm-scroller">
<pre class="cm-content q9tKkq_readonly m-0"><code>python -m pip install requests</code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p data-start="3639" data-end="3752">Many experienced developers prefer this approach because it is more reliable when multiple Python versions exist.</p>
<hr data-start="3754" data-end="3757" />
<h2 data-section-id="1bxmqjp" data-start="3759" data-end="3807">Step 3: Understand Where pip Lives on Windows</h2>
<p data-start="3809" data-end="3916">On Windows, pip is stored inside a folder called <strong data-start="3858" data-end="3869">Scripts</strong>, which lives inside the main Python directory.</p>
<p data-start="3918" data-end="3951">Typical locations look like this:</p>
<div class="relative w-full mt-4 mb-1">
<div class="">
<div class="relative">
<div class="h-full min-h-0 min-w-0">
<div class="h-full min-h-0 min-w-0">
<div class="border border-token-border-light border-radius-3xl corner-superellipse/1.1 rounded-3xl">
<div class="h-full w-full border-radius-3xl bg-token-bg-elevated-secondary corner-superellipse/1.1 overflow-clip rounded-3xl lxnfua_clipPathFallback">
<div class="relative">
<div class="pe-11 pt-3">
<div class="relative z-0 flex max-w-full">
<div id="code-block-viewer" class="q9tKkq_viewer cm-editor z-10 light:cm-light dark:cm-light flex h-full w-full flex-col items-stretch ͼd ͼr" dir="ltr">
<div class="cm-scroller">
<pre class="cm-content q9tKkq_readonly m-0"><code>C:\Users\YourName\AppData\Local\Programs\Python\Python3xx\Scripts</code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p data-start="4028" data-end="4030">or</p>
<div class="relative w-full mt-4 mb-1">
<div class="">
<div class="relative">
<div class="h-full min-h-0 min-w-0">
<div class="h-full min-h-0 min-w-0">
<div class="border border-token-border-light border-radius-3xl corner-superellipse/1.1 rounded-3xl">
<div class="h-full w-full border-radius-3xl bg-token-bg-elevated-secondary corner-superellipse/1.1 overflow-clip rounded-3xl lxnfua_clipPathFallback">
<div class="relative">
<div class="pe-11 pt-3">
<div class="relative z-0 flex max-w-full">
<div id="code-block-viewer" class="q9tKkq_viewer cm-editor z-10 light:cm-light dark:cm-light flex h-full w-full flex-col items-stretch ͼd ͼr" dir="ltr">
<div class="cm-scroller">
<pre class="cm-content q9tKkq_readonly m-0"><code>C:\Python3xx\Scripts</code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p data-start="4062" data-end="4097">Inside this folder, you should see:</p>
<ul data-start="4098" data-end="4144">
<li data-section-id="16tvudz" data-start="4098" data-end="4109"><code data-start="4100" data-end="4109">pip.exe</code></li>
<li data-section-id="1widm1w" data-start="4110" data-end="4122"><code data-start="4112" data-end="4122">pip3.exe</code></li>
<li data-section-id="8f7bu0" data-start="4123" data-end="4144">other related tools</li>
</ul>
<p data-start="4146" data-end="4236">If Windows does not know about this folder, it cannot run pip—even though the file exists.</p>
<hr data-start="4238" data-end="4241" />
<h3 data-section-id="1g6wqmq" data-start="4243" data-end="4297">Step 4: Add Python and Scripts to the PATH Variable</h3>
<p data-start="4299" data-end="4346">This is the most common and most effective fix.</p>
<h4 data-section-id="15c4a8k" data-start="4348" data-end="4388">How to add PATH correctly on Windows</h4>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-476" src="https://cybogeek.com/wp-content/uploads/2026/05/system-properties.png" alt="system-properties" width="414" height="468" srcset="https://cybogeek.com/wp-content/uploads/2026/05/system-properties.png 414w, https://cybogeek.com/wp-content/uploads/2026/05/system-properties-265x300.png 265w" sizes="(max-width: 414px) 100vw, 414px" /></p>
<ol data-start="4390" data-end="4731">
<li data-section-id="1fwn6pw" data-start="4390" data-end="4416">Open the <strong data-start="4402" data-end="4416">Start Menu</strong></li>
<li data-section-id="t3338s" data-start="4417" data-end="4456">Search for <strong data-start="4431" data-end="4456">Environment Variables</strong></li>
<li data-section-id="lfq28m" data-start="4457" data-end="4507">Click <strong data-start="4466" data-end="4507">Edit the system environment variables</strong></li>
<li data-section-id="5io99z" data-start="4508" data-end="4543">Select <strong data-start="4518" data-end="4543">Environment Variables</strong></li>
<li data-section-id="1ic13k2" data-start="4544" data-end="4588">Under <strong data-start="4553" data-end="4573">System variables</strong>, find <strong data-start="4580" data-end="4588">Path<img loading="lazy" decoding="async" class="aligncenter size-full wp-image-477" src="https://cybogeek.com/wp-content/uploads/2026/05/environment-variables.png" alt="environment-variables" width="613" height="579" srcset="https://cybogeek.com/wp-content/uploads/2026/05/environment-variables.png 613w, https://cybogeek.com/wp-content/uploads/2026/05/environment-variables-300x283.png 300w" sizes="(max-width: 613px) 100vw, 613px" /></strong></li>
<li data-section-id="zw9h67" data-start="4589" data-end="4606">Click <strong data-start="4598" data-end="4606">Edit</strong></li>
<li data-section-id="k1ia8g" data-start="4607" data-end="4677">Add:
<ul data-start="4618" data-end="4677">
<li data-section-id="bzhwt4" data-start="4618" data-end="4642">The main Python folder</li>
<li data-section-id="1ngf5gv" data-start="4646" data-end="4677">The Python <strong data-start="4659" data-end="4670">Scripts</strong> folder<img loading="lazy" decoding="async" class="aligncenter size-full wp-image-478" src="https://cybogeek.com/wp-content/uploads/2026/05/save-edit-environment-variable.png" alt="save-edit-environment-variable" width="516" height="490" srcset="https://cybogeek.com/wp-content/uploads/2026/05/save-edit-environment-variable.png 516w, https://cybogeek.com/wp-content/uploads/2026/05/save-edit-environment-variable-300x285.png 300w" sizes="(max-width: 516px) 100vw, 516px" /></li>
</ul>
</li>
<li data-section-id="o0jpza" data-start="4678" data-end="4708">Click <strong data-start="4687" data-end="4693">OK</strong> on all windows</li>
<li data-section-id="1bkdcj6" data-start="4709" data-end="4731">Close all terminals</li>
</ol>
<p data-start="4733" data-end="4803">After doing this, Windows will know where to find both Python and pip.</p>
<p data-start="4733" data-end="4803">
<h4 data-section-id="lg6pm8" data-start="4805" data-end="4823">Important note</h4>
<p data-start="4824" data-end="4926">Always open a <strong data-start="4838" data-end="4861">new terminal window</strong> after changing PATH. Existing terminals will not see the update.</p>
<p data-start="4824" data-end="4926">
<hr data-start="4928" data-end="4931" />
<h3 data-section-id="13yb922" data-start="4933" data-end="4978">Step 5: Test pip Again After Updating PATH</h3>
<p data-start="4980" data-end="5015">Open a new Command Prompt and type:</p>
<div class="relative w-full mt-4 mb-1">
<div class="">
<div class="relative">
<div class="h-full min-h-0 min-w-0">
<div class="h-full min-h-0 min-w-0">
<div class="border border-token-border-light border-radius-3xl corner-superellipse/1.1 rounded-3xl">
<div class="h-full w-full border-radius-3xl bg-token-bg-elevated-secondary corner-superellipse/1.1 overflow-clip rounded-3xl lxnfua_clipPathFallback">
<div class="relative">
<div class="pe-11 pt-3">
<div class="relative z-0 flex max-w-full">
<div id="code-block-viewer" class="q9tKkq_viewer cm-editor z-10 light:cm-light dark:cm-light flex h-full w-full flex-col items-stretch ͼd ͼr" dir="ltr">
<div class="cm-scroller">
<pre class="cm-content q9tKkq_readonly m-0"><code>pip --version</code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p data-start="5040" data-end="5118">If PATH is set correctly, Windows should now find pip and display its version.</p>
<p data-start="5120" data-end="5202">If it still does not work, do not panic. There are still reliable fixes available.</p>
<hr data-start="5204" data-end="5207" />
<h3 data-section-id="fcgung" data-start="5209" data-end="5268">Step 6: Reinstall Python the Right Way (Recommended Fix)</h3>
<p data-start="5270" data-end="5383">If your setup feels messy or inconsistent, reinstalling Python is often faster than troubleshooting every detail.</p>
<h4 data-section-id="1e6cxbz" data-start="5385" data-end="5424">During installation, make sure you:</h4>
<ul data-start="5425" data-end="5577">
<li data-section-id="1vft6ml" data-start="5425" data-end="5455">Check <strong data-start="5433" data-end="5455">Add Python to PATH</strong></li>
<li data-section-id="fitfmu" data-start="5456" data-end="5505">Ensure <strong data-start="5465" data-end="5472">pip</strong> is selected in optional features</li>
<li data-section-id="170vrrs" data-start="5506" data-end="5577">Use the default installation location unless you have a reason not to</li>
</ul>
<p data-start="5579" data-end="5598">After installation:</p>
<ul data-start="5599" data-end="5709">
<li data-section-id="1h4dhb1" data-start="5599" data-end="5636">Restart your computer (recommended)</li>
<li data-section-id="gpt945" data-start="5637" data-end="5658">Open a new terminal</li>
<li data-section-id="n2rv09" data-start="5659" data-end="5709">Test both <code data-start="5671" data-end="5689">python --version</code> and <code data-start="5694" data-end="5709">pip --version</code></li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-479" src="https://cybogeek.com/wp-content/uploads/2026/05/python-py-version-differ.png" alt="python-py-version-differ" width="751" height="194" srcset="https://cybogeek.com/wp-content/uploads/2026/05/python-py-version-differ.png 751w, https://cybogeek.com/wp-content/uploads/2026/05/python-py-version-differ-300x77.png 300w" sizes="(max-width: 751px) 100vw, 751px" /></p>
<p data-start="5711" data-end="5774">A clean reinstall resolves most PATH-related issues in minutes.</p>
<hr data-start="5776" data-end="5779" />
<h3 data-section-id="4cclmo" data-start="5781" data-end="5826">Step 7: Use the Python Launcher on Windows</h3>
<p data-start="5828" data-end="5927">Windows often installs a tool called the <strong data-start="5869" data-end="5888">Python launcher</strong>, which helps manage multiple versions.</p>
<p data-start="5929" data-end="5933">Try:</p>
<div class="relative w-full mt-4 mb-1">
<div class="">
<div class="relative">
<div class="h-full min-h-0 min-w-0">
<div class="h-full min-h-0 min-w-0">
<div class="border border-token-border-light border-radius-3xl corner-superellipse/1.1 rounded-3xl">
<div class="h-full w-full border-radius-3xl bg-token-bg-elevated-secondary corner-superellipse/1.1 overflow-clip rounded-3xl lxnfua_clipPathFallback">
<div class="relative">
<div class="pe-11 pt-3">
<div class="relative z-0 flex max-w-full">
<div id="code-block-viewer" class="q9tKkq_viewer cm-editor z-10 light:cm-light dark:cm-light flex h-full w-full flex-col items-stretch ͼd ͼr" dir="ltr">
<div class="cm-scroller">
<pre class="cm-content q9tKkq_readonly m-0"><code>py --version</code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p data-start="5957" data-end="5987">If it works, you can also use:</p>
<div class="relative w-full mt-4 mb-1">
<div class="">
<div class="relative">
<div class="h-full min-h-0 min-w-0">
<div class="h-full min-h-0 min-w-0">
<div class="border border-token-border-light border-radius-3xl corner-superellipse/1.1 rounded-3xl">
<div class="h-full w-full border-radius-3xl bg-token-bg-elevated-secondary corner-superellipse/1.1 overflow-clip rounded-3xl lxnfua_clipPathFallback">
<div class="relative">
<div class="pe-11 pt-3">
<div class="relative z-0 flex max-w-full">
<div id="code-block-viewer" class="q9tKkq_viewer cm-editor z-10 light:cm-light dark:cm-light flex h-full w-full flex-col items-stretch ͼd ͼr" dir="ltr">
<div class="cm-scroller">
<pre class="cm-content q9tKkq_readonly m-0"><code>py -m pip install numpy</code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p data-start="6022" data-end="6058">This approach avoids confusion when:</p>
<ul data-start="6059" data-end="6167">
<li data-section-id="9lce3a" data-start="6059" data-end="6091">Multiple Python versions exist</li>
<li data-section-id="509gbf" data-start="6092" data-end="6130">PATH points to the wrong interpreter</li>
<li data-section-id="1iy56" data-start="6131" data-end="6167">pip commands behave inconsistently</li>
</ul>
<p data-start="6169" data-end="6242">It is especially helpful on systems used for learning or experimentation.</p>
<hr data-start="6244" data-end="6247" />
<h3 data-section-id="14rjr7u" data-start="6249" data-end="6299">Step 8: Check whether pip Is Actually Installed</h3>
<p data-start="6301" data-end="6348">In rare cases, pip may not be installed at all.</p>
<p data-start="6350" data-end="6496">You can check by navigating to your Python folder and opening the <strong data-start="6416" data-end="6427">Scripts</strong> directory. If <code data-start="6442" data-end="6451">pip.exe</code> is missing, pip was not installed correctly.</p>
<p data-start="6498" data-end="6510"><strong>To fix this:</strong></p>
<ul data-start="6511" data-end="6597">
<li data-section-id="qw44lp" data-start="6511" data-end="6539">Rerun the Python installer</li>
<li data-section-id="1jsqqat" data-start="6540" data-end="6559">Choose <strong data-start="6549" data-end="6559">Modify</strong></li>
<li data-section-id="y2flk0" data-start="6560" data-end="6576">Enable <strong data-start="6569" data-end="6576">pip</strong></li>
<li data-section-id="k5bezj" data-start="6577" data-end="6597">Complete the setup</li>
</ul>
<p data-start="6599" data-end="6662">Once installed, repeat the PATH check and restart the terminal.</p>
<hr data-start="6664" data-end="6667" />
<h3 data-section-id="xfnlrl" data-start="6669" data-end="6718">Quick Fix Checklist (For Fast Troubleshooting)</h3>
<p data-start="6720" data-end="6778">If you want the shortest solution path, follow this order:</p>
<ol data-start="6780" data-end="6924">
<li data-section-id="y3o65u" data-start="6780" data-end="6807">Check <code data-start="6789" data-end="6807">python --version</code></li>
<li data-section-id="1r1r19d" data-start="6808" data-end="6840">Try <code data-start="6815" data-end="6840">python -m pip --version</code></li>
<li data-section-id="1si9y8c" data-start="6841" data-end="6874">Add Python and Scripts to PATH</li>
<li data-section-id="16u7sx8" data-start="6875" data-end="6894">Restart terminal</li>
<li data-section-id="pe6li0" data-start="6895" data-end="6924">Reinstall Python if needed</li>
</ol>
<p data-start="6926" data-end="6982">This sequence fixes most systems without advanced steps.</p>
<hr data-start="6984" data-end="6987" />
<h3 data-section-id="1iucdkx" data-start="6989" data-end="7029">Common Mistakes That Cause This Error</h3>
<p data-start="7031" data-end="7102">Many users run into the same problems repeatedly. Avoid these mistakes:</p>
<ul data-start="7104" data-end="7366">
<li data-section-id="kkhx6h" data-start="7104" data-end="7148">Installing Python from unofficial websites</li>
<li data-section-id="1xa6cij" data-start="7149" data-end="7180">Skipping “Add Python to PATH”</li>
<li data-section-id="can4kl" data-start="7181" data-end="7243">Installing packages without activating a virtual environment</li>
<li data-section-id="aielg0" data-start="7244" data-end="7296">Using old terminal windows after changing settings</li>
<li data-section-id="xfwhev" data-start="7297" data-end="7366">Mixing multiple Python versions without knowing which one is active</li>
</ul>
<p data-start="7368" data-end="7434">Being aware of these issues prevents future errors and saves time.</p>
<hr data-start="7436" data-end="7439" />
<h3 data-section-id="mg9ay0" data-start="7441" data-end="7479">How Virtual Environments Affect pip</h3>
<p data-start="7481" data-end="7538">When using virtual environments, pip behaves differently.</p>
<p data-start="7540" data-end="7699">If your virtual environment is <strong data-start="7571" data-end="7588">not activated</strong>, pip installs packages globally.<br data-start="7621" data-end="7624" />If it <strong data-start="7630" data-end="7646">is activated</strong>, pip installs packages inside that environment only.</p>
<p data-start="7701" data-end="7742">This is normal behavior and not an error.</p>
<p data-start="7744" data-end="7788">If pip suddenly “disappears,” check whether:</p>
<ul data-start="7789" data-end="7867">
<li data-section-id="1o6txhf" data-start="7789" data-end="7819">The environment is activated</li>
<li data-section-id="kpfgge" data-start="7820" data-end="7867">The terminal is using the correct interpreter</li>
</ul>
<p data-start="7869" data-end="7937">Understanding this avoids confusion when switching between projects.</p>
<hr data-start="7939" data-end="7942" />
<h4 data-section-id="114wazr" data-start="7944" data-end="7961">Final Thoughts</h4>
<p data-start="7963" data-end="8186">Seeing “pip is not recognized” on Windows can feel intimidating, but it is almost always a configuration issue—not a failure. Once PATH is set correctly or Python is reinstalled properly, pip becomes stable and predictable.</p>
<p data-start="8188" data-end="8224">The most important takeaway is this:</p>
<ul data-start="8225" data-end="8287">
<li data-section-id="1h44rqt" data-start="8225" data-end="8247">pip is rarely broken</li>
<li data-section-id="3xhbic" data-start="8248" data-end="8287">Windows just needs clear instructions</li>
</ul>
<p data-start="8289" data-end="8481">After fixing this issue once, you will rarely face it again. And once pip works properly, installing libraries, building projects, and learning Python becomes much smoother and more enjoyable.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 

Served from: cybogeek.com @ 2026-05-05 14:44:51 by W3 Total Cache
-->