我正试图在Anaconda(Windows 10)上运行。 我已经使用文档中描述的conda命令安装了它。 但这不起作用。
在Anaconda Powershell虚拟环境中。我安装了这个:function daftarortu()
{
$this->load->library('form_validation');
$this->form_validation->set_rules('pass', 'Pass', 'required|trim');
$this->form_validation->set_rules('pass1', 'Confirm Pass', 'required|trim|matches[pass]');
$this->form_validation->set_rules('email', 'Email', 'required|valid_email|trim');
$this->form_validation->set_rules('no_tlp', 'No Tlp', 'required|trim');
$this->form_validation->set_rules('alamat', 'Alamat', 'required|trim');
$this->form_validation->set_rules('n_ayah', 'N Ayah', 'required|trim');
$this->form_validation->set_rules('n_ibu', 'N Ibu', 'required|trim');
$this->form_validation->set_rules('id_role', 'Id Role', 'required');
$this->form_validation->set_rules('id_siswa', 'Id Siswa', 'required');
if ($this->form_validation->run()) {
$params = array(
'id_siswa' => $this->input->post('id_siswa'),
'id_role' => $this->input->post('id_role'),
'pass' => md5($this->input->post('pass')),
'n_ibu' => $this->input->post('n_ibu'),
'n_ayah' => $this->input->post('n_ayah'),
'email' => $this->input->post('email'),
'no_tlp' => $this->input->post('no_tlp'),
'alamat' => $this->input->post('alamat'),
);
$orang_tua_id = $this->Register_model->reg_orang_tua($params);
redirect('login');
} else {
$this->load->model('Siswa_model');
$data['all_siswa'] = $this->Siswa_model->get_all_siswa();
$this->load->model('Role_model');
$data['all_role'] = $this->Role_model->get_all_role();
$data['_regis'] = 'register/daftarortu';
$this->load->view('layouts/reg', $data);
}
}
它给出以下输出:
function reg_orang_tua($params)
{
$this->db->insert('orang_tua', $params);
return $this->db->insert_id();
}
安装似乎看到了错误的python路径,我该如何解决?
答案 0 :(得分:0)
在conda命令中:
conda卸载scrapy
然后
打开anaconda导航器,打开环境,搜索scrapy,然后安装