我已经使用以下命令安装了django multiselectfield
pip install django-multiselectfield
我得到了
Requirement already satisfied: django-multiselectfield in c:\users\lenovo\appdata\local\programs\python\python37\lib\sit
e-packages (0.1.8)
Requirement already satisfied: django>=1.4 in c:\users\lenovo\appdata\local\programs\python\python37\lib\site-packages\d
jango-2.0.3-py3.7.egg (from django-multiselectfield) (2.0.3)
Requirement already satisfied: pytz in c:\users\lenovo\appdata\local\programs\python\python37\lib\site-packages\pytz-201
9.1-py3.7.egg (from django>=1.4->django-multiselectfield) (2019.1)
我无法在我的程序中导入软件包multiselectfield。
python版本: 3.7.3
pip版本: 19.1.1
发布于 2019-05-21 05:56:44
您已使用pip install django-multiselectfield
安装了python2包
使用pip3 install django-multiselectfield
安装它,因为您使用的是Python3.7.3
如果你没有pip3,
使用apt-get install python3-pip
如果您使用的是虚拟环境,则必须在虚拟环境中安装。
发布于 2019-05-21 05:53:16
如果您使用venv (虚拟环境),则安装的软件包与您的项目没有关联,请验证您使用的是基础python 3.7,因为pip将其软件包安装到。
发布于 2019-05-21 05:39:10
您是否已将此应用程序添加到您的settings.py?并确保已安装的管道使用正确的管道。
https://stackoverflow.com/questions/56231588
复制