+ 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!

11th Jun 2020, 9:45 PM
Johnson Owoicho Kelvin
25 Respostas
+ 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
11th Jun 2020, 10:12 PM
Ali Abdelhady
Ali Abdelhady - avatar
+ 1
Is pip installed? If not than install it with: easy_install pip Which IDE are you using?
12th Jun 2020, 6:18 AM
Crash
Crash - avatar
0
tkinter should be available after you downloaded Python, no need to pip it. On what system have you tried it?
11th Jun 2020, 10:00 PM
HonFu
HonFu - avatar
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
11th Jun 2020, 10:04 PM
Johnson Owoicho Kelvin
0
I use version 3.9
11th Jun 2020, 10:15 PM
Johnson Owoicho Kelvin
0
Before then I was using 3.7
11th Jun 2020, 10:16 PM
Johnson Owoicho Kelvin
0
Johnson Owoicho Kelvin was it working on 3.7?
11th Jun 2020, 10:20 PM
Ali Abdelhady
Ali Abdelhady - avatar
0
No
11th Jun 2020, 10:20 PM
Johnson Owoicho Kelvin
0
Johnson Owoicho Kelvin what error do you get?
11th Jun 2020, 10:22 PM
Ali Abdelhady
Ali Abdelhady - avatar
0
Module name tkinter not found
11th Jun 2020, 10:24 PM
Johnson Owoicho Kelvin
0
And it's the same with every other libraries I try to import
11th Jun 2020, 10:25 PM
Johnson Owoicho Kelvin
11th Jun 2020, 10:33 PM
Ali Abdelhady
Ali Abdelhady - avatar
0
On the command line type: pip list This will show you the modules you've installed
12th Jun 2020, 12:28 AM
Logomonic Learning
Logomonic Learning - avatar
0
Have you checked if python is in the environment path?
12th Jun 2020, 12:36 AM
Logomonic Learning
Logomonic Learning - avatar
0
Ali Abdelhady Thanks I'll try that out
12th Jun 2020, 4:58 AM
Johnson Owoicho Kelvin
12th Jun 2020, 4:59 AM
Johnson Owoicho Kelvin
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
12th Jun 2020, 6:17 AM
Matvey Anoshin
Matvey Anoshin - avatar
0
Matvey Anoshin pip is installed
12th Jun 2020, 6:20 AM
Johnson Owoicho Kelvin
0
Crash I use pycharm
12th Jun 2020, 6:20 AM
Johnson Owoicho Kelvin
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
12th Jun 2020, 2:30 PM
Ali Abdelhady
Ali Abdelhady - avatar