当我尝试将python项目安装到自定义本地python repo中时,我使用以下命令:
ggplot(df %>% mutate(fill = ifelse(overall > company, " Below Overall "," Above Overall ")), aes(measure)) +
geom_col(aes(y=company, fill= fill)) +
geom_point(aes(y=overall, color="overall"), size=6, shape=124) +
scale_color_manual(values=c("grey3"),labels=c("Overall")) +
scale_fill_manual(values=c(" Below Overall "="lightpink2"," Above Overall "="lightblue2")) +
facet_grid(domain~., scales="free", space = "free") +
coord_flip()
其中setup.py是python项目Keras的简单setuptools脚本:
https://github.com/keras-team/keras/blob/master/setup.py
但是此命令会触发以下错误:
python setup.py install --install-dir /home/peng/python-temp
为什么错误提示中的参数不存在?我应该用什么才能有效地取代呢?
UPDATE1
参数--install-dir由setup.py触发的以下错误信息提示:
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --install-dir not recognized
UPDATE2 我尝试了'--prefix'选项,这就是我所得到的:
python setup.py install
running install
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/test-easy-install-13269.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python3.6/dist-packages/
所以它们都不起作用。