gensim安装的问题

时间:2016-11-29 11:46:09

标签: python gensim

public function delete_image($id)
{
    $image_path = base_url().'uploads/images/gallery/'; // your image path
    // get db record from image to be deleted
    $query_get_image = $this->db->get_where('np_gallery', array('id' => $id));
    foreach ($query_get_image->result() as $record)
    {
        // delete file, if exists...
        $filename = $image_path . $record->picture; 
        echo $record->picture;
        if (file_exists($filename))
        {
            unlink($filename);
        }
        // ...and continue with your code
        $this->np_gallery_model->delete($id);
        $query = $this->db->get("np_gallery");
        $data['records'] = $query->result();
        $this->load->view('admin/gallery/gallery_listing',$data);
    }
}

警告(来自警告模块):   文件" C:\ Python27 \ lib \ site-packages \ gensim \ utils.py",第840行     warnings.warn("检测到Windows;别名chunkize到chunkize_serial") UserWarning:检测到Windows;别名chunkize到chunkize_serial

2 个答案:

答案 0 :(得分:0)

这不是问题。仅适用于Windows,它的处理方式不同。 如果您不想看到此消息,可以使用this answer

中的代码

答案 1 :(得分:0)

这只是一个警告而不是错误。每当我导入gensim时,我也会在Windows上获取它。我不认为安装有问题。