2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Windowsでdjango-compressorを導入する方法

Last updated at Posted at 2016-11-06

Windowsでdjango-compressorを導入しようとしたら躓いたので内容をメモする

躓いた箇所

pip install django-compressor

単純にこうインストールすると、rjsminとrcssminで以下のエラーが出る

Failed building wheel for rjsmin
~~~中略~~~
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

VC++の14.0をダウンロードしろって事らしいが、いざダウンロードしても同じようなエラーが出る

対策

https://github.com/spz-signup/spz-signup/issues/17
ここからの丸コピーで申し訳ないが

pip install rjsmin --install-option="--without-c-extensions"
pip install rcssmin --install-option="--without-c-extensions"
pip install django-compressor

これで一応動いた。
c-extensionsを無視するのはあまり望ましくない気がするが、そこはもう諦めよう

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?