FAQ
hi:
     I cross compiled python2.7.10 and install python on my embedded
device. But now, I may install pip on my embedded device.
     So, I did it as follow:
         1>I execute cmd:python -m ensurepip. It ocuurs errors as follow:
             Traceback (most recent call last):
              File "/usr/lib/python/lib/python27.zip/runpy.py", line 162,
in _run_module_as_main
              File "/usr/lib/python/lib/python27.zip/runpy.py", line 72,
in _run_code
              File
"/var/app/python/libs/ensurepip.zip/ensurepip/__main__.py", line 4, in
<module>
              File
"/var/app/python/libs/ensurepip.zip/ensurepip/__init__.py", line 226, in
_main
              File
"/var/app/python/libs/ensurepip.zip/ensurepip/__init__.py", line 123, in
bootstrap
              File
"/var/app/python/libs/ensurepip.zip/ensurepip/__init__.py", line 45, in
_run_pip
              File
"/tmp/tmprHZPx4/pip-6.1.1-py2.py3-none-any.whl/pip/__init__.py", line
15, in <module>
              File
"/tmp/tmprHZPx4/pip-6.1.1-py2.py3-none-any.whl/pip/vcs/subversion.py",
line 9, in <module>
              File
"/tmp/tmprHZPx4/pip-6.1.1-py2.py3-none-any.whl/pip/index.py", line 30,
in <module>
              File
"/tmp/tmprHZPx4/pip-6.1.1-py2.py3-none-any.whl/pip/_vendor/__init__.py",
line 92, in load_module
              ImportError: No module named 'pip._vendor.html5lib'
The message "/tmp/tmprHZPx4/pip-6.1.1-py2.py3-none-any.whl" point out
the pip package in that dir, while it is not there.
         2>As a result of the above error message, I download the
pip-7.1.2 package and install it on my embedded device. It ocuurs errors
as follow:
             # python setup.py install
                 Traceback (most recent call last):
                  File "setup.py", line 6, in <module>
                  from setuptools import setup, find_packages
                  ImportError: No module named setuptools
             #
         3> I I download the setuptools package and execute cmd: python
setup.py install.It ocuurs errors as follow:
             # python setup.py install
              Traceback (most recent call last):
               File "setup.py", line 6, in <module>
               from setuptools import setup, find_packages
               File
"/var/app/python/libs/setuptools.zip/setuptools/__init__.py", line 12,
in <module>
               File
"/var/app/python/libs/setuptools.zip/setuptools/extension.py", line 8,
in <module>
               File
"/var/app/python/libs/setuptools.zip/setuptools/dist.py", line 19, in
<module>
               ImportError: No module named pkg_resources
        So, where can i download the pkg_resources package. Is there
somebody installed pip on embedded device? can you tell me how to do that?






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150907/15a14b1b/attachment.html>

Search Discussions

  • Laura Creighton at Sep 7, 2015 at 10:17 am
    Try that question on disutils-sig at python.org where the authors
    of pip are.


    Laura

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedSep 7, '15 at 9:59a
activeSep 7, '15 at 10:17a
posts2
users2
websitepython.org

2 users in discussion

Chenchao: 1 post Laura Creighton: 1 post

People

Translate

site design / logo © 2019 Grokbase