This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Install Python and pip?

Having great difficulty install Python and pip just to generate the keys for secure DFU. This seems like a greatly complex requirement just to be able to use this module.

  1. I installed Python 2.7.11

  2. I then clicked on the python application which opens a commandline window. Entering "pip install nrfutil" returns a syntax error.

pip install nrfutil File "", line 1 pip install nrfutil ^ SyntaxError: invalid syntax

  1. According to Python pip should come with Python 2.7.11 so it isn't an installation issue

Why couldn't this simply be an .exe tool rather than require installing an several different software packages and libraries just to generate keys?

Parents
  • Hi @Dave_coupling, when you install Python, pip should come with it. For example, in my installation of Python, pip is found @ /usr/local/lib/python2.7/site-packages/pip. Technically, from a command line, you can run

    python /usr/local/lib/python2.7/site-packages/pip/__main.py
    

    or just

    pip
    

    Depending on how your $PATH is setup. An OS agnostic way to find out where Python is installed would to open the Python executable you referenced above and try:

    >>> import os
    >>> import sys
    >>> os.path.dirname(sys.executable)
    

    Let me know how things go

Reply
  • Hi @Dave_coupling, when you install Python, pip should come with it. For example, in my installation of Python, pip is found @ /usr/local/lib/python2.7/site-packages/pip. Technically, from a command line, you can run

    python /usr/local/lib/python2.7/site-packages/pip/__main.py
    

    or just

    pip
    

    Depending on how your $PATH is setup. An OS agnostic way to find out where Python is installed would to open the Python executable you referenced above and try:

    >>> import os
    >>> import sys
    >>> os.path.dirname(sys.executable)
    

    Let me know how things go

Children
No Data
Related