How to install pip and python packages for self-installed python?


Tim
  1. /usr/bin/pythonPoints to /usr/bin/python2.7the old version python 2.7.6 my OS 14.04 uses.

    For old python, I want to install module regex:

    $ sudo python -m pip install regex
    /usr/bin/python: No module named pip
    

    So in synatpic I installed python-pipfor old python . The above command now says:

    Python2/_regex.c:46:20: fatal error: Python.h: No such file or directory
    

    So, in synapse, I installed libpython2.7-dev. All works now.

  2. I also installed a newer Python 2.7.9 version /usr/bin/local/python2.7by compiling Python 2 's source code .

    How to install pip and then install for regexnew python ?

thanks.

0x2b3bfa0

Python 2.7.9 and later (on the python2 series) and Python 3.4 and later both include pip 1 by default , so you probably already have pip.

To install pip, safely download get-pip.py,
then run the following command (administrative access may be required):
python get-pip.py

Source : https://pip.pypa.io/en/latest/installing.html _

Related


python packages can be installed via pip but not conda

Bomos I need divine packages to download new codebases. It needs to be holy. https://pypi.python.org/pypi/sacred conda install sacred fails with PackageNotFoundError: Package missing in current osx-64 channel: -sacred The instructions on the package site only

How to update Python packages installed by pip

Lewis Based on the Ubuntu lifecycle and release cadence, Ubuntu 16.04 will be fully supported by mid-2021. However, when I run: pip install cryptography it says: Requirement already satisfied: cryptography in /usr/lib/python2.7/dist-packages (1.2.3) Cryptogr

How to install python packages for python3 using pip?

User 3467834 I don't have enough space on my computer to install Anaconda. First I installed python3 using this: sudo apt install spyder3 After that, in order to install the package, I use this in terminal: pip install pandas After installation, when I want

How to remove packages installed using Python's easy_install?

ire_and_curses: Python easy_installmakes installing new packages very convenient. However, as far as I can tell, it doesn't implement the other common functionality of a dependency manager - listing and removing installed packages. What's the best way to find

How to make conda recognize python packages installed by pip?

Tensor I created a conda environment and then installed tensorflow using pip wheel pip. numpy is installed via pip at the same stage. When trying to install scipy, conda wants to install numpy in parallel with pip's installed numpy.... How to make conda recogn

Identify dependencies of python packages installed with pip

Mark Chackerian: When I freeze a pip, I see tons of Python packages that are not explicitly installed, e.g. $ pip freeze Cheetah==2.4.3 GnuPGInterface==0.3.2 Landscape-Client==11.01 M2Crypto==0.20.1 PAM==0.4.2 PIL==1.1.7 PyYAML==3.09 Twisted-Core==10.2.0 Twist

python packages can be installed via pip but not conda

Bomos I need divine packages to download new codebases. It needs to be holy. https://pypi.python.org/pypi/sacred conda install sacred fails with PackageNotFoundError: Package missing in current osx-64 channel: -sacred The instructions on the package site only

python packages can be installed via pip but not conda

Bomos I need divine packages to download new codebases. It needs to be holy. https://pypi.python.org/pypi/sacred conda install sacred fails with PackageNotFoundError: Package missing in current osx-64 channel: -sacred The instructions on the package site only

How to make conda recognize python packages installed by pip?

Tensor I created a conda environment and then installed tensorflow using pip wheel pip. numpy is installed via pip at the same stage. When trying to install scipy, conda wants to install numpy in parallel with pip's installed numpy.... How to make conda recogn

How to install pip and python packages for self-installed python?

Tim /usr/bin/pythonPoints to /usr/bin/python2.7the old version python 2.7.6 my OS 14.04 uses. For old python, I want to install module regex: $ sudo python -m pip install regex /usr/bin/python: No module named pip So in synatpic I installed python-pipfor old

How to detect and remove Python packages installed via pip?

Lofidevops I accidentally used pipinstead of installing a Python package into the system . I do this in two ways:apt-get When using an older version of virtualenv, I forgot to append --no-site-packageswhen creating the virtualenv - after that, when I call pip

Install python packages using pip

Praveen Sripati I am trying to install pymemcache on Ubuntu 17.04 using pip and I am getting the following error. This module is installed without the -t option. However, I want to install the module in a specific directory so that it can be packaged and uploa

PIP and python install packages

PaulM: I have a CentOS system with Python 2.7 and Python 3.4 installed. I have no information on how to install these. However, this is the response when the following command is issued: whereis /usr/bin/python3 python3: /usr/bin/python3.4 /usr/bin/python3.

PIP and python install packages

PaulM: I have a CentOS system with Python 2.7 and Python 3.4 installed. I have no information on how to install these. However, this is the response when the following command is issued: whereis /usr/bin/python3 python3: /usr/bin/python3.4 /usr/bin/python3.

Identify dependencies of python packages installed with pip

Mark Chackerian: When I freeze a pip, I see tons of Python packages that are not explicitly installed, e.g. $ pip freeze Cheetah==2.4.3 GnuPGInterface==0.3.2 Landscape-Client==11.01 M2Crypto==0.20.1 PAM==0.4.2 PIL==1.1.7 PyYAML==3.09 Twisted-Core==10.2.0 Twist

How to make conda recognize python packages installed by pip?

Tensor I created a conda environment and then installed tensorflow using pip wheel pip. numpy is installed via pip at the same stage. When trying to install scipy, conda wants to install numpy in parallel with pip's installed numpy.... How to make conda recogn

How to make conda recognize python packages installed by pip?

Tensor I created a conda environment and then installed tensorflow using pip wheel pip. numpy is installed via pip at the same stage. When trying to install scipy, conda wants to install numpy in parallel with pip's installed numpy.... How to make conda recogn

python packages can be installed via pip but not conda

Bomos I need divine packages to download new codebases. It needs to be holy. https://pypi.python.org/pypi/sacred conda install sacred fails with PackageNotFoundError: Package missing in current osx-64 channel: -sacred The instructions on the package site only

python packages can be installed via pip but not conda

Bomos I need divine packages to download new codebases. It needs to be holy. https://pypi.python.org/pypi/sacred conda install sacred fails with PackageNotFoundError: Package missing in current osx-64 channel: -sacred The instructions on the package site only

How to make conda recognize python packages installed by pip?

Tensor I created a conda environment and then installed tensorflow using pip wheel pip. numpy is installed via pip at the same stage. When trying to install scipy, conda wants to install numpy in parallel with pip's installed numpy.... How to make conda recogn

How to make conda recognize python packages installed by pip?

Tensor I created a conda environment and then installed tensorflow using pip wheel pip. numpy is installed via pip at the same stage. When trying to install scipy, conda wants to install numpy in parallel with pip's installed numpy.... How to make conda recogn

How to detect and remove Python packages installed via pip?

Lofidevops I accidentally used pipinstead of installing a Python package into the system . I do this in two ways:apt-get When using an older version of virtualenv, I forgot to append --no-site-packageswhen creating the virtualenv - after that, when I call pip

How to install pip and python packages for self-installed python?

Tim /usr/bin/pythonPoints to /usr/bin/python2.7the old version python 2.7.6 my OS 14.04 uses. For old python, I want to install module regex: $ sudo python -m pip install regex /usr/bin/python: No module named pip So in synatpic I installed python-pipfor old