jaydcarlson / py32-template

76 stars 13 forks source link

pack manager did not works #2

Open WGR7 opened 1 year ago

WGR7 commented 1 year ago

Hi,

What version of python, pyocd and cmsis-pack-manager are you using? I'm trying to do your steps, but cmd or Power Shell can't find pack-manager.

Regards.

jaydcarlson commented 1 year ago

Once you install pyocd (pip install pyocd) you should find pack-manager.exe in your Python install's Scripts directory. A common issue across Python more broadly is that people forget to add this Scripts directory to their path.

The location varies depending on if you installed Python via the stand-alone installer (in which case, check C:\Program Files\Python) or if you're running the Windows Store version (in which case, it'll be in a directory like C:\Users\[USER]\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_aglsj38bef3\LocalCache\local-packages\Python39\Scripts)

Here are instructions for modifying the PATH: https://www.mygreatlearning.com/blog/add-python-to-path/ (though make sure to also add the "Scripts" directory)