I have installed django multiselectfield using the command
pip install django-multiselectfield
I get
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)
I am unable to import the package multiselectfield in my program.
python version: 3.7.3
pip version: 19.1.1
如果您使用的是venv(虚拟环境),则说明已安装的软件包未与您的项目关联,请确认您使用的是基本python 3.7,因为pip已将其软件包安装到。
Have you already add this app to your settings.py ? and make sure installed use right pip.
You have installed python2 package using pip install django-multiselectfield
Install it using pip3 install django-multiselectfield
since you are using python 3.7.3
if you don't have pip3 ,
use apt-get install python3-pip
if you are using a virtual environment then you have to install in the virtual environment.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.