[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building a statically linked Python, and pip

Dear Group,
I need to build a statically linked Python that has pip.
I built a version following the instructions at
but pip was not present in the binary directory afterwards.

I downloaded get-pip.py but when I tried to install it I get an error
/usr/local/python/3.7.3-static/bin/python3 get-pip.py
Traceback (most recent call last):
  File "get-pip.py", line 21361, in <module>
  File "get-pip.py", line 197, in main
  File "get-pip.py", line 82, in bootstrap
    import pip._internal
  File "/tmp/tmp8gvwywom/pip.zip/pip/_internal/__init__.py", line 19, in
  File "/tmp/tmp8gvwywom/pip.zip/pip/_vendor/urllib3/__init__.py", line 8,
in <module>
  File "/tmp/tmp8gvwywom/pip.zip/pip/_vendor/urllib3/connectionpool.py",
line 28, in <module>
  File "/tmp/tmp8gvwywom/pip.zip/pip/_vendor/urllib3/packages/six.py", line
92, in __get__
  File "/tmp/tmp8gvwywom/pip.zip/pip/_vendor/urllib3/packages/six.py", line
115, in _resolve
  File "/tmp/tmp8gvwywom/pip.zip/pip/_vendor/urllib3/packages/six.py", line
82, in _import_module
  File "/usr/local/python/3.7.3-static/lib/python3.7/queue.py", line 16, in
    from _queue import Empty
ModuleNotFoundError: No module named '_queue'

I also tried this with a Python2, but got a similar but different message
ImportError: No module named _ctypes

Is there a way to install pip with a statically built Python? I enabled as
many modules as possible in
but I could not see any thing for _queue

thanks for any help

*---Simon Michnowicz *
Senior Application Specialist,  High-Performance Computing

*Research Support Services - eSolutions*
*Monash eResearch Centre*
Monash University
15 Innovation Walk, Building 75, Clayton Campus
Wellington Road, VIC 3800

T:  +61 3 9902 0794
M: +61 3 0418 302 046
E: simon.michnowicz at monash.edu