[英]ImportError: No Module named picklefield.fields (Yep pip install says it is there)
I am using vagrant
to run my python environment. 我正在使用
vagrant
来运行我的python环境。 In my data models I am using django-picklefield
module. 在我的数据模型中,我正在使用
django-picklefield
模块。
when I run my server it says 当我运行服务器时,它说
ImportError: No module named picklefield.fields.
I tried to uninstall and install the picklefield
module. 我试图卸载并安装
picklefield
模块。 Still having the same problem. 仍然有同样的问题。
You should be able install via: 您应该可以通过以下方式安装:
/[your python install directory]/bin/pip install django-picklefield
If you do this directly instead of a general pip call to install django-picklefield, that will ensure that it is installed on the correct version of Python. 如果直接执行此操作,而不是一般的pip调用来安装django-picklefield,则将确保它安装在正确的Python版本上。
Based on your description my best guess is that you have multiple versions of Python installed, and that your install/uninstall is happening on the wrong one. 根据您的描述,我最好的猜测是您安装了多个版本的Python,并且安装/卸载是在错误的版本上进行的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.