也许有人遇到过。在 Windows 中,我尝试构建,但 cmake 没有创建 ownCloud.rc。它在 Windows 上不起作用。然后我在 Linux 上试了一下。
主页
/
user-245523
Zuxriddin Kamalov's questions
django安装compressor时出现问题。谁能解释一下本质,如何解决?
Collecting django_compressor
Using cached django_compressor-2.1.1-py2.py3-none-any.whl
Collecting rjsmin==1.0.12 (from django_compressor)
Using cached rjsmin-1.0.12.tar.gz
Requirement already satisfied: django-appconf>=1.0 in c:\python\django projects\barakatex\lib\site-packages (from django_compressor)
Collecting rcssmin==1.0.6 (from django_compressor)
Using cached rcssmin-1.0.6.tar.gz
Installing collected packages: rjsmin, rcssmin, django-compressor
Running setup.py install for rjsmin: started
Running setup.py install for rjsmin: finished with status 'error'
Complete output from command "c:\python\django projects\barakatex\scripts\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\ASUS\\AppData\\Local\\Temp\\pip-build-x_9thics\\rjsmin\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\ASUS\AppData\Local\Temp\pip-vc4k97qp-record\install-record.txt --single-version-externally-managed --compile --install-headers "c:\python\django projects\barakatex\include\site\python3.5\rjsmin":
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
copying .\rjsmin.py -> build\lib.win-amd64-3.5
running build_ext
building '_rjsmin' extension
error: [WinError 2] Не удается найти указанный файл
----------------------------------------
loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
Hash: 7782cb475ac2e7a51788
Version: webpack 2.4.1
Time: 771ms
Asset Size Chunks Chunk Names
bundle.js 2.95 kB 0 [emitted] main
/--------------------------------------------------------/
var webpack = require("webpack");
module.exports = {
entry: "./src/index.js",
output:{
path: "/src/js",
filename: "bundle.js",
publicPath: "/src/js",
},
devServer:{
inline: true,
contentBase: "./src",
port: 3000,
},
module:{
loaders: [
{
test: /\.js$/,
exclude: /(node_modules)/,
loader: "babel-loader",
query: {
presets: ["latest","stage-0", "react"]
}
}
]
}
}
