The module does not work in python (pip too)

Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32 bit (In tel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> mincss Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'mincss' is not defined >>> import mincss >>> mincss <module 'mincss' from 'C:\\Python34\\lib\\site-packages\\mincss\\__init__.py'> >>> mincss http://github.com File "<stdin>", line 1 mincss http://github.com ^ SyntaxError: invalid syntax >>> 
  • And what exactly are you trying to do? - vp_arth
  • one
    What do you think mincss http://github.com and what does your design generally have to do? - andreymal
  • 2
    The REPL displays some messages to you ... I think it is no accident .. - vp_arth

1 answer 1

You thoughtlessly copied a line from the documentation and did not even bother to figure out what is written there.

And there is written a command for the terminal. Together with the mincss module, the mincss command is installed (where it is installed depends on your operating system), and you should not apply to the module in python, but run this same command in an ordinary terminal.

If you do not know where the mincss command was mincss and how to start it, ask it in a separate question, indicating there the way you installed mincss, as well as the version of Python and your operating system.

screenshot of Linux

  • Be kind. explain for mincss github.com ? What does it do with the githab? - vp_arth
  • @vp_arth minifies its CSS, doesn't it?) - andreymal
  • css githaba? github main page? recursive search? - vp_arth
  • @vp_arth but the FIG knows, I didn’t find a word in the documentation about this command (except the actual $ mincss https://github.com line $ mincss https://github.com ) - andreymal