Error unable to select packages python

Description of the issue Installing docker-compose with pip as per the instructions from the docs fails with error: Can not find Rust compiler ---------------------------------------- ERROR: Failed...

Comments

@kolaente

@aiordache
aiordache

linked a pull request

Feb 12, 2021

that will
close
this issue

longwand

added a commit
to longwand/topimmo-engine
that referenced
this issue

Feb 27, 2021

@longwand

@nqb
nqb

mentioned this issue

Mar 1, 2021

tombola

pushed a commit
to torchbox/rca-wagtail-2019
that referenced
this issue

Mar 29, 2021

JonasAlfredsson

added a commit
to JonasAlfredsson/docker-nginx-certbot
that referenced
this issue

Mar 31, 2021

@JonasAlfredsson

Newer versions of the pip package "cryptography" make use of the rust
compiler when being built [1], so we will need the cargo package in
order for this to be successful.

This issue is primarily appearant in 32-bit ARM devices, which do not
have any pre-compiled wheels they can download, so it will have to
build it from source.

[1]: docker/compose#8105 (comment)

chiangf

added a commit
to wevo-conversion/docker-alpine-node-14-awscli
that referenced
this issue

Aug 4, 2021

@chiangf

papanito

added a commit
to papanito/atlantis-docker-image
that referenced
this issue

Sep 2, 2022

@papanito

papanito

added a commit
to papanito/atlantis-docker-image
that referenced
this issue

Sep 2, 2022

@papanito

papanito

added a commit
to papanito/atlantis-docker-image
that referenced
this issue

Sep 2, 2022

@papanito

This was referenced

Feb 2, 2023

Recommend Projects

  • React photo

    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo

    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo

    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo

    TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo

    Django

    The Web framework for perfectionists with deadlines.

  • Laravel photo

    Laravel

    A PHP framework for web artisans

  • D3 photo

    D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Visualization

    Some thing interesting about visualization, use data art

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo

    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo

    Microsoft

    Open source projects and samples from Microsoft.

  • Google photo

    Google

    Google ❤️ Open Source for everyone.

  • Alibaba photo

    Alibaba

    Alibaba Open Source for everyone

  • D3 photo

    D3

    Data-Driven Documents codes.

  • Tencent photo

    Tencent

    China tencent open source team.

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to install python-pip with sudo apt install python-pip this command. But I am facing following error Unable to locate package python-pip in Python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

Contents

  1. How Unable to locate package python-pip Error Occurs ?
  2. How To Solve Unable to locate package python-pip Error ?
  3. Solution 1: Use this command
  4. Solution 2: Identify version that installed in your System
  5. Solution 3: Using curl
  6. Solution 4: Reinstall in Windows
  7. Summary

How Unable to locate package python-pip Error Occurs ?

I am trying to install python-pip with sudo apt install python-pip this command. But I am facing following error.

$ pip
Command ‘pip’ not found, but can be installed with:

sudo apt install python-pip

$ sudo apt install python-pip
[sudo] password for aiki:
Reading package lists…
Done Building dependency tree Reading state information… Done
C: Unable to locate package python-pip

How To Solve Unable to locate package python-pip Error ?

  1. How To Solve Unable to locate package python-pip Error ?

    To Solve Unable to locate package python-pip Error Just follow these command step by step: sudo apt-get install software-properties-common Then run this command: sudo apt-add-repository universe Now, sudo apt-get update Then sudo apt-get install python-pip Second solution is You just need to Identify version that installed in your System Use this command to find your installed version: ls /bin/python* If Python 2.X Installed then run This command: sudo apt-get install python2-pip If Python 3.X Installed then run This command: sudo apt-get install python3-pip Now your error should be solved.

  2. Unable to locate package python-pip

    To Solve Unable to locate package python-pip Error Just follow these command step by step: sudo apt-get install software-properties-common Then run this command: sudo apt-add-repository universe Now, sudo apt-get update Then sudo apt-get install python-pip Second solution is You just need to Identify version that installed in your System Use this command to find your installed version: ls /bin/python* If Python 2.X Installed then run This command: sudo apt-get install python2-pip If Python 3.X Installed then run This command: sudo apt-get install python3-pip Now your error should be solved.

Solution 1: Use this command

Just follow these command step by step.

sudo apt-get install software-properties-common

Then run this command.

sudo apt-add-repository universe

Now,

sudo apt-get update

Then

sudo apt-get install python-pip

Now your error should be solved.

Solution 2: Identify version that installed in your System

You just need to Identify version that installed in your System Use this command to find your installed version.

ls /bin/python*

If Python 2.X Installed then run This command.

sudo apt-get install python2-pip

If Python 3.X Installed then run This command.

sudo apt-get install python3-pip

Now your error should be solved.

Solution 3: Using curl

Download pip with curl. Just run this command. If you do not have curl installed then First of all install curl or skip this command.

apt-get install curl
https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py

Hope, Your problem might be solved now.

Solution 4: Reinstall in Windows

  1. First of all Launch a command prompt if it isn’t already open. To do so, open the Windows search bar, type cmd and click on the icon.
  2. Then, run the following command to download the get-pip.py file:
  3. curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  4. Then type this command:
  5. python get-pip.py
  6. Once you’ve installed PIP, you can test whether the installation has been successful by typing the following.
  7. pip help.
  8. Now, your error must be solved.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

  • RuntimeWarning: Enable tracemalloc to get the object allocation traceback

У меня проблема, которая началась совсем недавно. Библиотека Docker Alpine Python больше не устанавливается:

apk update && apk upgrade && apk add python
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
v3.14.2-119-g9c4e1aa60c [https://dl-cdn.alpinelinux.org/alpine/v3.14/main]
v3.14.2-120-g90167408c8 [https://dl-cdn.alpinelinux.org/alpine/v3.14/community]
OK: 14943 distinct packages available
(1/1) Upgrading alpine-keys (2.3-r1 -> 2.4-r0)
  0%                                               2% #                                             5% ##                                            7% ###                                          10% ####                                         12% #####                                        15% ######                                       17% #######                                      20% #########                                    23% ##########                                   25% ###########                                  28% ############                                 30% #############                                33% ##############                               35% ###############                              38% ################                             41% ##################                           43% ###################                          46% ####################                         48% #####################                        51% ######################                       53% #######################                     % ############################################OK: 7 MiB in 16 packages
ERROR: unable to select packages:
  python (no such package):
    required by: world[python]

Exited with code exit status 1

1 ответ

Лучший ответ

Вы пытаетесь использовать библиотеку python (псевдоним) вместо python3.

Попробуйте вместо этого использовать apk update && apk upgrade && apk add python3.


26

Peter Mortensen
6 Дек 2021 в 23:58

Понравилась статья? Поделить с друзьями:
  • Error unable to initialize the unity engine как исправить
  • Error unable to initialize steam api please make sure steam is running and
  • Error unable to initialize smbios library
  • Error unable to initialize main class
  • Error unable to initialize gtk is display set properly