Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python 3.9 pip install

I recently downloaded and installed Python 3.9 because I wanted to run a website scraper to more easily organize recipes found online. However, when I try to run pip it says it doesn't recognize it (and I have tried editing the path but every video or site I find has different information).

Even a basic check of my Python version comes back with no results:

enter image description here

I have uninstalled and reinstalled Python 3.9 but to no avail. There is also no scripts file within my python file and my computer doesn't even seem to recognise that Python is installed.

like image 630
smarotu Avatar asked Oct 24 '20 07:10

smarotu


People also ask

How do I install a Python 3.9 module?

You can install modules or packages with the Python package manager (pip). To install a module system wide, open a terminal and use the pip command. If you type the code below it will install the module. That will install a Python module automatically.

How do I install Pip in Python?

If your Python environment does not have pip installed, there are 2 mechanisms to install pip supported directly by pip’s maintainers: Python comes with an ensurepip module 1, which can install pip in a Python environment. More details about how ensurepip works and how it can be used, is available in the standard library documentation.

How to install python3-pip on Ubuntu?

By default, python3-pip is not installed in Ubuntu 20.04 and installing it from apt will install the old pip package. So let's see step by step installation of the latest python3-pip version (20.3.3). It will be a two-step process, first, we will install pip 20.0.2 using the apt repository.

How to install packages in Python on Windows?

Python’s package installer is called pip. The package manager for Python packages is Python pip. We can use pip to install packages that aren’t part of the Python distribution. Pip commands on command prompt use the following basic syntax. Python is cross-platform, which means it can run on various platforms, including Windows VPS Server.

Is Pip not installed by default in Ubuntu?

So pip is not installed by default in Ubuntu. The error reported as "command pip not found" or command 'pip3' not found in our example. While writing this article, Python 3.9.1 is the latest version available. I will show you the correct way to install Python 3.9.1 and pip 20.3.3 in Linux.


3 Answers

In python 3.9 you can add below path(scripts path) to your environment variable

C:\Users\ASUS\AppData\Local\Programs\Python\Python39\Scripts

Once the path is added, open a fresh CMD window and type pip --version.

You can see your pip version pip 20.2.4

like image 92
Shubham Khunt Avatar answered Oct 24 '22 08:10

Shubham Khunt


I found that for Python 3.9 if you enter the command as py -m pip install, the installation initiates as expected.

Annotation 2021-06-17 121518_install pywinauto Visual Studio Code terminal

like image 29
L00ti Avatar answered Oct 24 '22 08:10

L00ti


I finally can use pip install. Here is how I do it:

  1. Run python 3.6.9-adm64.exe

  2. Choose Modify

  3. Tick all boxes and click Next

  4. Tick [Create shortcuts...appplication](not important) and Add Python to environment variables and click Install

  5. Now run CMD and type:

    py -m pip install (name) //pygame for example
    

Now I installed pygame easily.

like image 1
Bob Avatar answered Oct 24 '22 06:10

Bob