I think you replied to the wrong post here, but anyway:

On 06/10/2021 10.57, Adeyemi Deji wrote:
First of all, what text editor do you use, If not visual studio code I recommend you get that one and learn how to use it, then u can always set the python interpreter based on your choice.

I don't see how a text editor is relevant for the problem here. Sure, some kind of Python IDE might help, but since the poster I assume you wanted to reply to already mentioned having installed three different Python versions I don't think there's any reason to make things more complicated by starting to discuss editors/IDEs. Would be relevant to know *how* these Python versions were installed since that very much sounds like that could be the cause of the problem.

I use Emacs BTW. :-)

Secondly u need a virtual environment and you can get that with (python -m venv venv) then activate it by changing directory to the directory where the venv folder exist and do this (call venv/scripts/activate) after that you can start using pip to install libraries by using (pip install libraryName), some libraries require you to add into the installed app list in your django project settings.py file for example the tempfile. This should solve your problem. If not, there are great developers out there that will be willing to help you out.


That's all true and great, but as I wrote, tempfile is part of the Python standard library so no reason to look into pip or installed apps in Django. It sounds much more like a problem with the Python installation(s).

Thanks anyway and kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f0ed1393-625e-c1ce-7202-8847968343fb%40stacktrace.dk.

Attachment: OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to