Python Forum
Compiling SlicerCAT - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Compiling SlicerCAT (/thread-29815.html)



Compiling SlicerCAT - flaviu2 - Sep-21-2020

I have read here: https://blog.kitware.com/slicercat-creating-custom-applications-based-on-3d-slicer/
that I need to install Python in order to compile SlicerCAT application. Which I did. But since I didn't compiled any Python code yet, I stuck in first step:

Step 1: Generate the application framework
To start using the template, you need to have python installed on your system. To get a custom 3D Slicer application started in a new repository, use the following code snippet:

pip install cookiecutter jinja2-github
cookiecutter gh:KitwareMedical/SlicerCustomAppTemplate

pip install cookiecutter jinja2-github
cookiecutter gh:KitwareMedical/SlicerCustomAppTemplate

So, I typed "pip install cookiecutter jinja2-github" in my python cmd line:

[Image: 6tNPGrN]

File "<stdin>", line 1
pip install cookiecutter jinja2-github
^
SyntaxError: invalid syntax
>>>

Sorry my misunderstanding ... can you lead me into right direction ?


RE: Compiling SlicerCAT - buran - Sep-21-2020

You are trying to run pip in python interactive shell, but it's not python code
write
pip install cookiecutter jinja2-github
in your shell/terminal, e.g.

C:\>pip install cookiecutter jinja2-github