Why are python packages not installed in my system | Sololearn: Learn to code for FREE!

+2

Why are python packages not installed in my system

Each time I wanna do a project and I try to import libraries, say tkinter, I get an error. I've tried installing them using pip all to no avail, I've searched through google, tried everything I got all to no avail. does anyone here share the same experience with me? I need ur help people!

6/11/2020 9:45:01 PM

Johnson Owoicho Kelvin

28 Answers

New Answer

+1

You do have Python3 on the Path of your system, right? Check the version of Python you are using; in Python 2 it is import Tkinter (with a capital T), So maybe you are running Python 2 not 3

+1

Is pip installed? If not than install it with: easy_install pip Which IDE are you using?

0

tkinter should be available after you downloaded Python, no need to pip it. On what system have you tried it?

0

I've tried it. each time I try to import it, I get an error saying "no module name tkinter" same applies to other libraries

0

I use version 3.9

0

Before then I was using 3.7

0

Johnson Owoicho Kelvin was it working on 3.7?

0

0

Johnson Owoicho Kelvin what error do you get?

0

Module name tkinter not found

0

And it's the same with every other libraries I try to import

0

Johnson Owoicho Kelvin Try checking the IDE you are using or read the question here https://stackoverflow.com/questions/49684131/python-import-module-not-working

0

On the command line type: pip list This will show you the modules you've installed

0

Have you checked if python is in the environment path?

0

Ali Abdelhady Thanks I'll try that out

0

Logomonic Learning yes it is

0

First of all, which os do you use?. If windows pls - check your Python path in windows settings, after try -m pip3 --upgrade pip if error remains, better reinstall python if you use a Linux based on Debian (Ubuntu, Mint and etc) try sudo apt-get install python3-pip

0

Matvey Anoshin pip is installed

0

Crash I use pycharm

0

Johnson Owoicho Kelvin On searching, I met a problem about mporting in Pycharm, I don't personally use it, but this is probably a problem in the IDE not Python it self, search for a fix, one more thing, if you want to make sure; open your terminal and write Python, it should open a shell, import any module and press enter. [EDIT] check these out https://stackoverflow.com/questions/26069254/importerror-no-module-named-bottle-pycharm https://youtu.be/RvbUqf3Tb1s