从包中安装 ckan 后,创建新的 sysadmin 用户是否需要 virtualenv?
Is a virtualenv required for making a new sysadmin user after installing ckan from package?
我刚刚在我的本地机器上从包中安装了 ckan。如何为我的实例创建一个新的系统管理员用户?没有虚拟环境,paster命令怎么可能运行。文档没有说明从 package 安装 ckan 的虚拟环境的要求。
此外,当我 运行 以下命令时:
paster sysadmin add seanh -c /etc/ckan/default/production.ini
终端要求我获取 python-pastescript。当我执行命令“sudo apt-get install python-pastescript
”时,我得到以下结果:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
以下信息可能有助于解决问题:
The following packages have unmet dependencies:
python-pastescript : Depends: python-setuptools but it is not going to be installed or
python-distribute
E: Unable to correct problems, you have held broken packages.
需要帮助。
既然你 installed CKAN from package 我相信你需要在所有粘贴命令中使用 sudo ckan
而不是 paster
。
例如
sudo ckan sysadmin add seanh -c /etc/ckan/default/production.ini
我刚刚在我的本地机器上从包中安装了 ckan。如何为我的实例创建一个新的系统管理员用户?没有虚拟环境,paster命令怎么可能运行。文档没有说明从 package 安装 ckan 的虚拟环境的要求。 此外,当我 运行 以下命令时:
paster sysadmin add seanh -c /etc/ckan/default/production.ini
终端要求我获取 python-pastescript。当我执行命令“sudo apt-get install python-pastescript
”时,我得到以下结果:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
以下信息可能有助于解决问题:
The following packages have unmet dependencies:
python-pastescript : Depends: python-setuptools but it is not going to be installed or
python-distribute
E: Unable to correct problems, you have held broken packages.
需要帮助。
既然你 installed CKAN from package 我相信你需要在所有粘贴命令中使用 sudo ckan
而不是 paster
。
例如
sudo ckan sysadmin add seanh -c /etc/ckan/default/production.ini