statiqdev / Statiq.Web

Statiq Web is a flexible static site generator written in .NET.
https://statiq.dev/web
Other
1.64k stars 234 forks source link

install pptx #1017

Closed ryaaa-yay closed 6 months ago

ryaaa-yay commented 6 months ago

I want to let my python automatically create a pptx, but it shows syntax error when I try to install pptx, I have tried both conda and pip, but they all show this error

runfile('/Users/katherinexia/.spyder-py3/untitled1.py', wdir='/Users/katherinexia/.spyder-py3') File :1 pip install aspose.slides ^ SyntaxError: invalid syntax

runfile('/Users/katherinexia/.spyder-py3/untitled1.py', wdir='/Users/katherinexia/.spyder-py3') File :1 pip install python-pptx==0.5.5 ^ SyntaxError: invalid syntax

runfile('/Users/katherinexia/.spyder-py3/untitled1.py', wdir='/Users/katherinexia/.spyder-py3') File :1 conda install -c conda-forge python-pptx

girlpunk commented 6 months ago

It appears the function you are running (runfile) requires a python script, not a shell script. As both pip and conda are standard executables and not valid python, you are receiving an error indicating that.

daveaglick commented 6 months ago

Agreed - closing this as it doesn't appear to be Statiq related at all.