Title: python 2.16 from source on Ubuntu 18.04
Type: resource usage Stage: resolved
Components: Versions: Python 2.7
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: Jilguero ostras, ZackerySpytz, mark.dickinson
Priority: normal Keywords:

Created on 2019-06-11 17:20 by Jilguero ostras, last changed 2020-07-13 15:59 by benjamin.peterson. This issue is now closed.

Messages (3)
msg345255 - (view) Author: Jilguero ostras (Jilguero ostras) Date: 2019-06-11 17:20
-Trying to install Python 2.16 from source on Ubuntu 18.04. Latest version is not in repositories.
-Installation completes but I need to install pip from repositories
-modules (e.g. numpy) installed by pip install on /usr/local/lib/python2.7/dist-packages
-installed modules can not be imported on Python
-path /usr/local/lib/python2.7/dist-packages is not listed on sys.path
-when added manually, modules are imported with errors and they don't work
-I am installing modules with -t option of pip, to be installed on /home/user01/.local/lib/python2.7/site-packages, because it is included on sys.path
-modules are imported to Python with errors

In addition to numpy, other modules fail. I think there is a problem with Python/pip after installation from source.
msg345260 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2019-06-11 18:33
This report is a bit hard to understand. Please could you give more details? Can you tell us:

- *exactly* what you did (what sequence of instructions you executed, where you got the Python source from, etc.)
- what you expected to happen
- what did happen, including any relevant tracebacks, error messages or logs.

I don't understand what "Python 2.16" refers to: the latest version of Python 2 is Python 2.7.

One possible cause of error is using the wrong pip command. Which "pip" command are you using, and where did it come from? In general, you need to use the "pip" for the corresponding Python installation. The safest way to do this is to always use "python -m pip" (with the right target Python) instead of plain "pip".

To get an initial install of "pip", use "python -m ensurepip" (depending on Python version, but this is available for all recent Python 2.7.x and Python 3.x releases).
msg373609 - (view) Author: Zackery Spytz (ZackerySpytz) * (Python triager) Date: 2020-07-13 14:38
Python 2.7 is no longer supported, so I think this issue should be closed.
Date User Action Args
2020-07-13 15:59:50benjamin.petersonsetstatus: open -> closed
resolution: out of date
stage: resolved
2020-07-13 14:38:16ZackerySpytzsetnosy: + ZackerySpytz
messages: + msg373609
2019-06-11 18:33:15mark.dickinsonsetnosy: + mark.dickinson
messages: + msg345260
2019-06-11 17:20:41Jilguero ostrascreate