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. 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.

On Tue, Oct 5, 2021 at 10:44 PM Kasper Laudrup <laud...@stacktrace.dk>
wrote:

> On 05/10/2021 17.20, Olalekan Alashe wrote:
> > Pls ,How can i fixed this error (ModuleNotFoundError: No module named
> > 'tempfile').i wanted to install Django with this command "python -m pip
> > installs Django" .....I have python 3.8,3.7.3.9 on my system.
> >
>
> The tempfile module is part of the Python standard library:
>
> https://docs.python.org/3/library/tempfile.html
>
> I would guess you have somehow messed up your Python installation(s),
> but without any further information it's really hard to help you.
>
> How did you install three different Python versions and how do you
> select which one to run?
>
> 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/2f69b7fb-67bf-db15-0585-639b1aac9911%40stacktrace.dk
> .
>

-- 
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/CAEO1GroYU%2BpEp43UUdb6tttTasyf%3DHvgnhcnDNt-Ymxe9QhXyQ%40mail.gmail.com.

Reply via email to