Pip is not installing

Solved
Ilyasc -  
mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   -
Hello, I would like to install Ursina Engine for Python but I need pip. I tried to install it but when I run the command
pip install
the command prompt tells me that pip is not recognized as an internal or external command.

What should I do to install it, please?
Thank you in advance.
P.S. I have Python version 3.9.1.

2 answers

  1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940
     
    Hello,

    If you're on Linux (please specify your distribution), you need to install the appropriate package. In what follows, I'm assuming you're on Debian or a derivative distribution (Ubuntu, Mint, ...) that uses
    apt
    as its package manager:
    • Python2:
      sudo apt install python-pip
      (the
      pip
      command will then be available)
    • Python3:
      sudo apt install python3-pip 
      (the
      pip3
      command will then be available).


    Note that when you have the option, it's advisable to install a Python module via APT first rather than using
    pip
    (these packages have a name that starts with
    python-*
    for Python2 and
    python3-*
    for Python3).

    Example: to install numpy in Python3, you prefer
    sudo apt install python3-numpy
    to
    sudo pip3 install numpy
    .

    Good luck.
    0
    1. ilyasc Posted messages 62 Registration date   Status Member Last intervention   1
       
      Hello, thank you for your response, I am on Windows 10

      What command should I use?
      0
    2. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940 > ilyasc Posted messages 62 Registration date   Status Member Last intervention  
       
      A little Google search?
      https://phoenixnap.com/kb/install-pip-windows

      Good luck
      0
    3. ilyasc Posted messages 62 Registration date   Status Member Last intervention   1 > mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention  
       
      I tried, but I'm stuck when I need to run the command
      cd folder_name
      : it tells me that this folder does not exist.
      0
    4. ilyasc Posted messages 62 Registration date   Status Member Last intervention   1 > mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention  
       
      I already have
      pip
      . The problem is that, for example, I want to install
      guizero
      . I run the command
      pip install guizero
      and it displays this
      'pip' is not recognized as an internal or external command,
      operable program or batch file.
      ... even though I have
      pip
      .
      0
    5. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940 > ilyasc Posted messages 62 Registration date   Status Member Last intervention  
       
      Hello

      I'm stuck at the point where I have to run the command
      cd the_name_of_the_folder


      I don't know what your command
      cd the_name_of_the_folder
      refers to, but
      the_name_of_the_folder
      should be replaced with the path of the folder you want to navigate to.

      I've already piped the problem that, for example, if I want to install guizero, I run the command pip install guizero and it shows me this

      It may not be correctly installed, or at least pip.exe might not be located in a folder referenced in your environment variable
      $Env:Path
      . According to this tutorial, you must have missed something before step 5 (because if
      pip install
      does not work, you probably did not successfully complete step 5).

      In which folder is your
      pip
      executable located? What does your variable
      $Env:Path
      show in PowerShell?

      Good luck
      0
  2. Phil_1857 Posted messages 1883 Registration date   Status Member Last intervention   169
     
    Hello,

    I am on Windows 10

    To install a module, I type the following command in the command prompt:

    python -m pip install module_name

    example:

    python -m pip install simpleaudio
    0
    1. ilyasc Posted messages 62 Registration date   Status Member Last intervention   1
       
      0
    2. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940 > ilyasc Posted messages 62 Registration date   Status Member Last intervention  
       
      In my opinion, you should reinstall your Python setup. For example, see this tutorial.

      Good luck
      0
    3. ilyasc Posted messages 62 Registration date   Status Member Last intervention   1 > mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention  
       
      Does it work with PyCharm too?
      0
    4. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940 > ilyasc Posted messages 62 Registration date   Status Member Last intervention  
       
      pycharm
      is a Python development environment, while Anaconda is a Python distribution.
      • A development environment is just an advanced text editor suitable for programming.
      • A Python distribution allows you to run a program coded in Python (including
        pip
        ).
      0
    5. ilyasc Posted messages 62 Registration date   Status Member Last intervention   1 > mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention  
       
      What does that mean?
      0