При импорте сторонней библиотеки происходит ошибка:
from django.shortcuts import redirect, HttpResponse
from django.contrib.auth.models import User
import zeep
# Create your views here.
# Create your views here.
def get_ref_book_list(request):
if request.user.is_authenticated:
wsdl = 'http://www.soapclient.com/xml/soapresponder.wsdl'
client = zeep.Client(wsdl=wsdl)
return HttpResponse(client.service.getRefbookList('my_token'))
else:
return redirect('/api-auth/login/', locals())
File "/home/pi/mis_asp/mis_asp/soap/urls.py", line 17, in <module>
from soap import views
File "/home/pi/mis_asp/mis_asp/soap/views.py", line 2, in <module>
import zeep
ImportError: No module named 'zeep'
Как импортировать библиотеку (установлена через pip)?