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