How to install clean-css of node. js in python2.7

Source: Internet
Author: User
Tags install openssl openssl centos install node in python


Sudo apt-get install node-less

Sudo apt-get install npm

Sudo npm install-g less-plugin-clean-css

/Usr/lib/node_modules/npmconf requires inherits @'~ 2.0.0 & prime; but will load

Before performing the following operations, back up the inherits @ 2 folder and restore the folder.
Cd/usr/lib/node_modules
$ Unlink inherits
$ Rm-rf inherits \ @ 2/
$ Npm install-g inherits

Sudo ln-s/usr/bin/nodejs/usr/bin/node

Nodejs-clean-css is needed by odoo-9.0_20151001-1.noarch

8-17
Sudo yum install-y odoo

Requires: python-xlwt

Ps: // pypi.python.org/pypi/xlwt/ "> https://pypi.python.org/pypi/xlwt/

Pip install xlwt

Install pip
Wget-no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz

Tar zvxf 1.5.5.tar.gz # decompress the file
Cdpip-1.5.5/
Python setup. py install

Python setup. py install
Traceback (most recent call last ):
File "setup. py", line 6, in
From setuptools import setup, find_packages
ImportError: No module named setuptools
Many Linux stories

Https://pypi.python.org/pypi/setuptools

Download and Install
Result

"Compression requires the (missing) zlib module"

Yum install zlib

Yum install zlib-devel

After the installation is complete, recompile python2.7. [you do not need to delete it. You only need to re-compile, make, and install it]
Make
Make install

I found that I deleted it before, so I re-compiled it.

Reload python2.7.

There are a lot of things in python, the dependency is strange, obviously installed, still prompts lack, so just reinstall python.

After installing and updating Python on CentOS recently, the following error occurs: ImportError: cannot import name HTTPSHandler.

Solution:

You must install OpenSSl before installing python.

The command is as follows:

Centos:

Yum install openssl-devel-y

Debian or Ubuntu:

Apt-get install libssl

And then reinstall Python.
So I went back to reinstall python.

Pip install xlwt

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.